Currently, I know how to pass an object by value binding it to the session.
FacesContext context = FacesContext.getCurrentInstance();
Application application = context.getApplication();
application.createValueBinding
("#{sessionScope.someObject}").setValue(context, someObject);
I then access this property from my bean via the managed-property facility in the faces-config.
A few of my pages act as both an Add and Modify page. Using the above technique, when I come to the page as Modify, everything is fine, but when I come back as Add, I still have the object in the session and so it displays old data.
Is there a way to pass an object to a page that is just in the request scope similar to the above solution?
Thanks.
- Passing Object to Page Gregg Bolinger
- Re: Passing Object to Page Cosma Colanicchia
- Re: Passing Object to Page Gregg Bolinger

