Thx.
My bean has "session" scope too.
The only diff I see is my page code is not inside a "facet", yet I don't think this (should) make any difference.
I'm out of ideas.
Philippe

On 20 Feb 2006, at 22:29, Carsten Burghardt wrote:

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