I am thinking about a way on how to transfer data objects across several 
managed-beans. Say I have two wizard pages, each having managed beans as their 
"controller". Now both want to modify a DTO that comes from the business layer. 
Now how do you pass the modified DTO from the first backing bean to the second?

Using managed properties my first approach was to inject #{firstBean.dto} into 
#{secondBean.dto}. However, this creates a dependency on the order (what if 
page 2 becomes page 1?). I would like to inject #{dto} only. So, this raises 
the question: Why not make the DTO become a managed bean? Are there any 
disadvantages? I have not seen this approach in any JSF tutorials. What if the 
DTO becomes a, say hibernate, entity. Will the JSF lifecycle methods make this 
impossible?

Thanks for any help
Chris
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220

Reply via email to