[jboss-user] [JBoss Seam] - Re: Page Flow Start Question
tom_goring
do-not-reply at jboss.com
Fri Jan 4 13:13:40 EST 2008
Ok I've got to the bottom of this (by re-reading the docs) and with the help of the new error.
1) Add you link as follows:
| <s:button value="New Contractor..." action="#{contractorJoinWizard.beginFlow}" />
|
2) Have a backing bean with
| @Begin(pageflow="ContractorJoinWizard",join=true)
| public String beginFlow() {
| log.info("startFlow");
| return "pickScheme";
| }
|
3) don't mix start-state and start-page (i needed start-state)
| <pageflow-definition
| xmlns="http://jboss.com/products/seam/pageflow"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd"
| name="ContractorJoinWizard">
|
| <start-state name="Start">
| <transition name="pickScheme" to="JoinWizardPickScheme"></transition>
| <transition name="complete" to="JoinWizardComplete"></transition>
| </start-state>
|
| <page name="JoinWizardPickScheme" view-id="/contractor/JoinWizardPickScheme.xhtml">
| <redirect/>
| <transition name="next" to="JoinWizardComplete"/>
| <transition name="cancel" to="JoinWizardComplete"></transition>
| </page>
|
| <page name="JoinWizardComplete" view-id="/contractor/JoinWizardComplete.xhtml">
| <end-conversation/>
| <redirect/>
| </page>
|
| </pageflow-definition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117159#4117159
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117159
More information about the jboss-user
mailing list