File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Property value getting null in beforeRenderResponse Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply 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
 
Threads others viewed
querystring values and GET method
PhaseListener problem
Weird h:message output from select menues!
JSF and REST urls
Problem in setting view root in beforeRenderResponse()
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture