• Post Reply Bookmark Topic Watch Topic
  • New Topic

Resetting bean value in JSF

 
Richard Roszak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my jsf I am reading a bean value and executing java script if its set to true:



Is there any way in the jsf or in the javascript I can set to false?

Thanks
 
Gerbrand van Dieijen
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With a4j library you could do that: http://www.jboss.org/community/wiki/Ajax4jsf

Something like:



The event parameter is the javascript event that will cause the method specified by action to be executed. Instead of onclick, you could also use onsubmit, onload, onchange, etc. depending on the jsf-component in which you've embedded the a4j:support section
setNeedToPrintToFalse works as the name suggests. The reRender value lists all id's of jsf components, areas or forms that need to be rererended after the javascript event fired.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!