3 Replies Latest reply on Nov 12, 2007 6:00 AM by Shane Bryzak

    Checking roles after logout

    Adam Warski Master


      I have a piece of code that is rendered if a user has a certain role. I also have a logout link on that page:

      <s:link action="#{identity.logout}" value="Logout" rendered="#{identity.loggedIn}" />

      After I click that link, the page refreshes as expected. However, the page fragment that depends on user having a certain role is still rendered - and no user is logged in at the time of rendering a page.