3 Replies Latest reply on Sep 20, 2006 9:44 AM by Gavin King

    Create component from pageflow

    David G. Newbie

      I can't create a component within a seam pageflow:
      The following code works if the 'contactAction' seam component has already been created, for example when viewing a facelet using it.

      <start-page name="contactPage" view-id="/pages/contacto/index.seam">
       <redirect/>
       <transition name="sendMessage" to="evaluateMessageSent">
       <action expression="#{contactAction.sendMessage}"/>
       </transition>
       </start-page>
      
       <decision name="evaluateMessageSent" expression="#{contactAction.messageSent}">
       <transition name="true" to="messageSentPage"/>
       <transition name="false" to="messageFailPage" />
       </decision>
      
       <!-- Pages -->
       <page name="messageSentPage" view-id="/pages/contacto/messageSent.seam">
       <redirect/>
       <end-conversation/>
       </page>
       <page name="messageFailPage" view-id="/pages/contacto/messageFail.seam">
       <redirect />
       <end-conversation />
       </page>
      


      Is it possible to invoke #{contactAction} from a pageflow when that component hasn't been created?