2 Replies Latest reply on Mar 1, 2008 12:17 PM by Jarek Gilewski

    NotLoggedInException and JAAS configuration

    Jarek Gilewski Newbie

      There is something strange with s:hasRole

      I have something like this in component.xml

           <security:identity authenticate-method="#{authenticator.authenticate}"
                security-rules="#{securityRules}" />

      I'm using jaas configuration.

      In menu.xhtml i have:


      <s:link view="/users.xhtml" value="Users" propagation="none" rendered="#{s:hasRole('admin')}"/>

      After loggin as an admin user i can see Users link and all is ok. But after logout i got NotLoggedInException. After Refresh button the page is loaded properly.

      Changing menu.xhtml like:

      <s:link view="/users.xhtml" value="Users" propagation="none" rendered="#{identity.loggedIn and s:hasRole('admin')}"/>

      solved the problem.

      This problem is only with jaas-config-name in components.xml

      Am i doing something wrong or it is a bug?