You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jan Baumann <ja...@andrena.de> on 2008/07/21 14:02:34 UTC

SetValue in Render Response Phase

Hello MyFaces Users,

I'm currently working in a project where one of our security oriented 
team members suggested to try and use request scoped beans instead of 
session scope. However I am currently completely stuck at one particular 
workflow I am trying to get to work using request scopes.

The pageflow is, I would think, rather standard.
Search => (SearchBackingBean) => ShowResult
ShowResult => (ResultBackingBean) => EditResult
EditResult => (ResultBackingBean) => ShowResult
etc.

I started out using a request map to pass the result object from my 
search to my result backing bean. However now the object was destroyed 
since the request had ended. Since we thought it would be easier to just 
continue using the same object, we stored it via a unique key inside our 
session (a unique key so we can support multiple windows each operating 
with its own result object). To pass the key along I tried storing it in 
a hidden field, which is filled at the end of the render response cycle 
by having a phase listener use setValue() on the HTMLHiddenField 
component. However the value I set never makes it to the resulting page.

Does anybody know why this does not work?

Kind regards

Jan Baumann