[jboss-user] [JBoss Seam] - Re: Programmatic arbitrary redirection inside pageflow

smithbstl do-not-reply at jboss.com
Thu Oct 18 10:54:12 EDT 2007


You could do away with pageflows and use pages.xml for your navigation logic.  You could then just return the view as a string from your method.

http://docs.jboss.com/seam/2.0.0.CR2/reference/en/html_single/#d0e5182

anonymous wrote : If you find navigation rules overly verbose, you can return view ids directly from your action listener methods:
  | public String guess() {
  |   |     if (guess==randomNumber) return "/win.jsp";
  |   |     if (++guessCount==maxGuesses) return "/lose.jsp";
  |   |     return null;
  |   | }
  | Note that this results in a redirect.....

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

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



More information about the jboss-user mailing list