Hello!
My question is. Is it possible to reuse pageflows on different parts of
application. What I would want to do is shown in the following example:
Just imagine that we have defined following imaginary pageflow:
| <pageflow-definition name="newObject">
| <start-state name="start">
| <transition name="start" to="selectClass"></transition>
| </start-state>
| <page name="selectClass" view-id="/selectClass.xhtml">
| <redirect />
| <transition name="select" to="createObject">
| <action expression="#{newObjectManager.selectClass}" />
| </transition>
| <transition name="cancel" to="end" />
| </page>
| <page name="createObject" view-id="/createObject.xhtml">
| <event type="node-enter">
| <action expression="#{newObjectManager.createObject}" />
| </event>
| <redirect />
| <transition name="ok" to="end">
| <action
expression="#{newObjectManager.confirmCreation}" />
| </transition>
| <transition name="cancel" to="end" />
| </page>
| <end-state name="end">
| <end-conversation />
| </end-state>
| </pageflow-definition>
|
I dont know if I can use end-state. What I would love to have is that when this
pageflow reach end state that would mean that we want to return to the calling
page. In this way I could reuse pageflows on different parts of application. I
could then have two different pages which could use same pageflow and on
completition of pageflow navigation would return to the calling page.
I could even call pageflow inside another pageflow which would on completition
return to the calling pageflow.
In this way I could even break big pageflow into smaller reusable parts. Is
this hard to implement.
Silvo Koren
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941509#3941509
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941509
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user