This content has been marked as final.
Show 3 replies
-
1. Re: jpdl pageflow and bijection
rkilcoyne.rkilcoyne.mac.com Feb 13, 2009 2:51 AM (in response to rkilcoyne.rkilcoyne.mac.com)BTW, exposing my SFSB field using a getter/setter and binding it to the text field with #{myBean.txtName} achieves the desired result. It just seems like the easier, less verbose method is to use bijection. -
2. Re: jpdl pageflow and bijection
rkilcoyne.rkilcoyne.mac.com Feb 13, 2009 4:12 PM (in response to rkilcoyne.rkilcoyne.mac.com)I think I got this figured out...
Bijection occurs with method calls in a component. In my pageflow, I use commandButtons to call the "next" transition. Since this "next" transition has nothing to do with the SFSB backing my pageflow, it doesn't trigger a method call, therefore bijection doesn't take place and the fields from my SFSB are not bijected.
The solution is to create a method called next() in my SFSB that returns the string "next" and gets called from my command button: <h:commandButton value="Next" action="#{MyBean.next}"/>. Since this triggers a method in my SFSB, the fields are bijected. -
3. Re: jpdl pageflow and bijection
nidhiaaryabatra May 7, 2009 9:31 PM (in response to rkilcoyne.rkilcoyne.mac.com)I have a kind of related question; does the jpdl pageflow have to be backed by a stateful session bean or can the seam beans even be stateless beans or POJOs or anything else?