How do I pass parameters between request-scoped beans

Posted by smayers81 on Stack Overflow See other posts from Stack Overflow or by smayers81
Published on 2010-05-14T15:10:44Z Indexed on 2010/05/14 15:14 UTC
Read the original article Hit count: 293

Filed under:
|
|
|

This is a question that has been bothering me for sometime. My application uses ICEFaces for our UI framework and Spring 2.5 for Dependency Injection. In addition, Spring actually maintains all of our backing beans, not the ICEFaces framework, so our faces-config is basically empty.

Navigation is not even really handled through navigation-rules. We perform manual redirects to new windows using window.open.

All of our beans are defined in our appContext file as being request-scoped. I have Page ABC which is backed by BackingBeanABC. Inside that backing bean, I have a parameter say:

private Order order;

I then have Page XYZ backed by BackingBeanXYZ. When I redirect from page ABC to page XYZ, I want to transfer the 'order' property from ABC to XYZ. The problem is since everything is request-scoped and I'm performing a redirect, I am losing the value of 'description'.

There has got to be an easier way to pass objects between beans in request scope during a redirect. Can anyone assist with this issue?

© Stack Overflow or respective owner

Related posts about jsf

Related posts about icefaces