[jboss-user] [JBoss Seam] - Do we need both start-state/start-page pageflows?

Delphi's Ghost do-not-reply at jboss.com
Tue May 8 11:56:53 EDT 2007

I've been playing around with the notion of a RESTFul URL that starts a conversation.

The most obvious place to start a conversation for a restful URL is in pages.xml with the <begin-conversation join="true" pageflow="MyEdit"> tag in the edit page. The pageflow requires the flow to start with the start-page tag.

However, the edit page might be called from places other than the bookmarked URL, and we might want to run the flow in a nested conversation. On that basis, we might start the flow from a @Begin annotated method, or an s:link, one of which requires the pageflow to start with a start-state tag.

The problem is that I need to write two almost identical page flows, one with start-state and the other with start-page as the first tag.

Is there really a need for both types? In 99% of cases the flows will be identical  with the start-state re-directing to the same page specified as the start-page. In the event of you really needing two different pageflows depending on the origin of the pageflows start, you have the option of writing two pageflows, which you would have to anyway under the current design. Seam certainly knows which to expect on the basis that it will tell you when you are calling the wrong pageflow type.

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

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

More information about the jboss-user mailing list