1 Reply Latest reply on Apr 12, 2008 4:22 AM by Tom Goring

    Mix JSF Return Code Logic in a Rule

    Tom Goring Apprentice

      Hi,


      You can define this:



      <navigation from-action="#{identity.login}">
       <rule if="#{identity.loggedIn and user.temporary}">
        <begin-conversation flush-mode="manual" join="true"/>  
        <redirect view-id="/login/UserUpdateTemporary.xhtml" />
       </rule> 
      



      And this:



      <navigation from-action="#{personAlert.confirm()}">
       <rule if-outcome="success">
        <end-conversation/>
        <redirect view-id="/user/UserHome.xhtml" />
        </rule>
      </navigation>
      



      but I don't see how I can mix a JSF return value with some other logic like:



       <rule if-outcome="success and #{user.temporary}">
      



      Is this possible? what is the syntax?