This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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??
 
 
subject: Property value getting null in beforeRenderResponse
 
Similar Threads
querystring values and GET method
JSF and REST urls
Problem in setting view root in beforeRenderResponse()
Weird h:message output from select menues!
PhaseListener problem