This content has been marked as final.
Show 3 replies
-
1. Re: How to redirect to the start page in a conversation when
gavin.king Jul 14, 2006 12:17 AM (in response to gfzhang)Use @Conversational in the current release, or no-conversation-view-id in CVS.
-
2. Re: How to redirect to the start page in a conversation when
gfzhang Jul 14, 2006 1:17 AM (in response to gfzhang)Thanks for your quick reply. But it does not work.
I add some pages in the numberGuess sample. The followng is the page flow xml file:<pageflow-definition name="numberGuess"> <start-page name="displayGuess" view-id="/numberGuess.jsp"> .... <transition name="interval" to="toInterval"> <action expression="#{numberGuess.show}" /> </transition> </start-page> <page name="toInterval" view-id="/interval.jsp"> <redirect/> <transition name="back" to="displayGuess"/> <transition name="done" to="toDone"> <action expression="#{numberGuess.show}" /> </transition> </page> <page name="toDone" view-id="/done.jsp"> <redirect/> <transition name="back" to="displayGuess"> <action expression="#{numberGuess.show}" /> </transition> <end-conversation /> </page> </pageflow-definition>
In "toInterval" page, I restart JBoss server, then click Done button. I hope this would cause the numberGuess page to be displayed, but not. The toInterval page is redisplayed.
The following is the show method:@Conversational(ifNotBegunOutcome="back") public void show() { System.out.println( "i am called" ) ; }
even if i use
@Conversational(ifNotBegunOutcome="/numberGuess.jsp")
it still won't work.
What is wrong in my code?
Thanks.
-
3. Re: How to redirect to the start page in a conversation when
gavin.king Jul 14, 2006 12:19 PM (in response to gfzhang)The ifNotBegunOutcome needs to trigger a navigation rule in your faces-config.xml, of course!
Its not going to trigger a transition in the pageflow, since there is no pageflow, since you just restarted the server!