Am Monday 20 February 2006 22:18 schrieb Philippe Lamote:
> Too bad :-(
> Setting "immediate" to "true" is certainly an enhancement, (speed-
> wise) yet it doesn't change anything here.
> Have you changed other things as well perhaps?
> Philippe

Nope but lets try the complete thingy:

  <f:facet name="logout">
    <h:panelGroup>
      <t:graphicImage value="images/small/exit.png" border="0"/>
      <f:verbatim>&nbsp;</f:verbatim>
      <h:commandLink immediate="true" action="#{navigationBean.logoutAction}" 
styleClass="root">
        <h:outputText value="#{node.description}"/>
      </h:commandLink>
    </h:panelGroup>
  </f:facet>

    public String logoutAction()
    {
        rootNode = null;
        try {
            // remove the user from the session
            serviceLocator.getUserService().logout();
        } catch (ServiceException e) {
            // ignore
        }
        // invalidate the session
        HttpSession session = (HttpSession) 
FacesContext.getCurrentInstance().getExternalContext().getSession(false);
        session.invalidate();
        
        return INavigationResults.LOGIN;
    }

The backing bean is session based.


Carsten

Reply via email to