2 Replies Latest reply on Apr 28, 2009 10:09 AM by jamesjmp

    rendering NoConversation situation

      hi!


      In a page you may render some code depending on if the user is logged in or not this way:


      <rich:panel rendered="#{identity.loggedIn}" style="width:400px;">
      ...
      </rich:panel>
      
      <rich:panel rendered="#{not identity.loggedIn}" style="width:400px;">
      ...
      </rich:panel>
      



      I wonder if there is an EL expression to evaluate if there is a conversation or not. Something like this


      <rich:panel rendered="#{NoConversation}" style="width:400px;">
      ...
      </rich:panel>
      


      In pages.xml I know it is possible to configure how to redirect to a page when there is an org.jboss.seam.NoConversationException, but I would like to render in a page some code only if there is no conversation, so pages.xml approach for this purpose does not suit me.
      thanks in advance!