wood burning stoves 2.0*
The moose likes JSF and the fly likes Property value getting null in beforeRenderResponse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Property value getting null in beforeRenderResponse" Watch "Property value getting null in beforeRenderResponse" New topic
Author

Property value getting null in beforeRenderResponse

Dushyant Agarwal
Ranch Hand

Joined: Oct 14, 2007
Posts: 75
Hi,
I have a project with a JSF page containing the <f:phaseListener> tag with its binding attribute equal to its own backing bean , which means the Page's Backing Bean is a PhaseListener.

Now there is a beforeRenderResponse() method implemented in the backing bean which gets called just before the before the RENDER_RESPONSE phase gets executed.

As well as there is a String Property str(initiallly str= null). Its value is set in an action method bound to a <h:commandButton> on the page(this would take place in Invoke application phase - before the Render Response phase) ,
to a String as following .

str=" myvalue";

But when I try to print the value of str in beforeRenderResponse() It comes out to be null. Where does the value of str get changed if no new bean instance is created??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Property value getting null in beforeRenderResponse
 
Similar Threads
JSF and REST urls
querystring values and GET method
Problem in setting view root in beforeRenderResponse()
Weird h:message output from select menues!
PhaseListener problem