Posts

Showing posts from October, 2014

Logout From ADF application

Image
I implemented this method in the Action of the logout button public String logout{         FacesContext fctx = FacesContext.getCurrentInstance();         ExternalContext ectx = fctx.getExternalContext();         HttpSession session = (HttpSession) ectx.getSession(false);         session.invalidate();         HttpServletRequest request = (HttpServletRequest)ectx.getRequest();         HttpServletResponse response = (HttpServletResponse) ectx.getResponse();         ServletAuthentication.logout(request,response,false);         try{                ectx.redirect("http://iaigc.net");              }              catch(Exception e){                e.printStackTrace();              }              fctx.responseComplete();         return null; } Then I changed the property of the ADF taskflow Taskflow Reentry to reentery-not-allowed to prevent the The browser back  button to return to my page

Showing Popup when clicking on calendar activity

First set the calendar activity calendarActivityListener="#{calActivityBean.activityListener}" second insert the popup and the panelform containg the iterator in the facet activityDetail thired,in the backing beean add implements calendarActivityListener     public void activityListener(CalendarActivityEvent calendarActivityEvent) {         CalendarActivity activity =               calendarActivityEvent. getCalendarActivity ();                   if (activity != null) {               DCBindingContainer dcbindings =                   (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();               DCIteratorBinding iterator =                   dcbindings.findIteratorBinding("CalenderEventsVoIterator");               Key key = new Key(new Object[] { activity.getId() });               RowSetIterator rsi = iterator.getRowSetIterator();               Row row = rsi.findByKey(key, 1)[0];               rsi. setCurrentRow (row);