Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Property value getting null in beforeRenderResponse

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
reply
    Bookmark Topic Watch Topic
  • New Topic