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();   ...

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("Cal...