-
1. Re: possible to specify action in pageflow transition?
ellenzhao Jul 14, 2007 9:46 AM (in response to mocha)yes. Do it like this:
<page name="history" view-id="/history.xhtml"> <redirect/> <transition name="youNameIt" to="historyitem"> <action expression="#{historyController.selectHistoryItem(item)}"/> </transition> <transition name="youNameIt2" to="...."> <action expression="...." /> </transition> .... </page> <page name="historyitem" view-id="/historyitem.xhtml"> .... </page>
-
2. Re: possible to specify action in pageflow transition?
mocha Jul 14, 2007 10:07 AM (in response to mocha)thanks for the suggestion. Unfortunately I get the following error when trying this:
Caused by org.jbpm.JbpmException with message: "couldn't evaluate expression '#{historyController.selectHistoryItem(item)}'"
...
Caused by org.jbpm.jpdl.el.ELException with message: "Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||", "?"]" -
3. Re: possible to specify action in pageflow transition?
ellenzhao Jul 14, 2007 12:09 PM (in response to mocha)the last time I wrote page flow definition in jPDL was last year December, so I do not know whether this Seam Enhanced EL is also working in jPDL....For your scenario there is a workaround. You can make your "item" your action bean managed (write it as a member like private Item historyItem; and write setter and getter. Change the signature of your selectHistoryItem, make it take no parameter. Finally expose the setter and getter in the business interface of your action bean), and bind the value of your historyItem somewhere in your page form (so you do not have to pass the item as parameter in your selectHistoryItem()). This way you can call the selectHistoryItem() in your jPDL file like this:
<page name="history" view-id="/history.xhtml">
....
Currently I am also implementing a master-detail pattern but using "nested conversations + rendering flags (all boolean) in conversation beans + multilevel, conditional facelet templating" approach. -
4. Re: possible to specify action in pageflow transition?
ellenzhao Jul 14, 2007 12:11 PM (in response to mocha)sorry, forgot to use the code tag in my last post...I meant:
<page name="history" view-id="/history.xhtml"> <redirect/> <transition name="youNameIt" to="historyitem"> <action expression="#{historyController.selectHistoryItem}"/> </transition> <transition name="youNameIt2" to="...."> <action expression="...." /> </transition> .... </page>
-
5. Re: possible to specify action in pageflow transition?
pmuir Jul 14, 2007 2:03 PM (in response to mocha)jboss-el isn't currently working in jbpm, but should be for Seam 2.0.0.CR1
-
6. Re: possible to specify action in pageflow transition?
mocha Jul 14, 2007 7:57 PM (in response to mocha)Thanks for the help with this. I got it working using DataModelSelection and the pageflow suggested by ellenzhao.
Looking forward to Seam 2.0.0.CR1 with jboss-el support from jbpm - will be a more elegant solution for my purposes.