0 Replies Latest reply on Oct 11, 2011 12:55 PM by Mason Harding

    page.xml, conditional login-required, <restrict> and PermissionResolver

    Mason Harding Newbie

      Hi all.  I am trying to make pages so that I can decide through code if login is required or not.  The easiest way to do this would be on a page.xml, to use


      However seam does not support EL inside of login-required.  As a workaround I tried

      <restrict>#{! (domain.isLoginrequired() and ! identity.isLoggedIn())}</restrict>

      This worked perfectly, but I have a custom PermissionResolver, which is no longer called due to the restrict listed above returning true. 

      Does anyone have any ideas as to a simple solution that allows me to make login-required conditional?

      This is with seam 2.2.1.Final