[jboss-user] [JBoss Seam] - Re: How to redirect to the start page in a conversation when

gfzhang do-not-reply at jboss.com
Fri Jul 14 01:17:19 EDT 2006


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.
 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957969#3957969

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957969



More information about the jboss-user mailing list