Posts

Showing posts from June, 2013

How to make logout

    public String onLogout() {      FacesContext fctx = FacesContext.getCurrentInstance();      ExternalContext ectx = fctx.getExternalContext();      String url = ectx.getRequestContextPath() +                 "/adfAuthentication?logout=true&end_url=/faces/loginpage.jspx";          try {        ectx.redirect(url);      } catch (IOException e) {        e.printStackTrace();      }      fctx.responseComplete();      return null;     }     public void logout(ActionEvent actionEvent) {             // Add event code here...             ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();             HttpServletResponse res...

Dashboard