2 Replies Latest reply on Apr 8, 2008 12:46 PM by Oleg Puzanov

    Page action without the long-running conversation

    Oleg Puzanov Newbie

      Hello,


      I've faced the necessity to call the page action only when there is no long-running conversations.


      Example pages.xml:


      <page view-id="/main.xhtml">
         <action if="#{not conversation.longRunning}" execute="#{mybean.myaction()}" />
         ..... 
      </page>



      My question is the following - it seems that this is a hack and not a normal solution. Does anybody know the normal way to call a page action only when there is no long-running conversations?


      This page action outjects a conversationally-scoped variable, which is fetched from the database and will be later used by JSF components of this page.


      Thanks,
      Oleg