aspose file tools
The moose likes JSF and the fly likes valueChangeListener not working Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "valueChangeListener not working" Watch "valueChangeListener not working" New topic
Author

valueChangeListener not working

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Hello all,
Please i am using a valueChangeListener in my tag but its not working, I have
<af:selectOneChoice label="Label 1" valueChangeListener="#{backing_chart.categorySelecteds}" attributeChangeListener="#{backing_chart.categorySelected}" > its suppose to execute the method

public void categorySelecteds(ValueChangeEvent event) but the method is not getting executed when i change the value in the drop down
David Ronan Burns
Greenhorn

Joined: May 10, 2006
Posts: 1
You need to provide the "value" and "onSubmit "attributes in the tag, otherwise the listener won't fire. the "onsubmit" informs the servlet that the form is to be submitted. As a result the JSF lifecycle is activated and all datavalues that are set during the "Apply Request Values"
phase will check for listeners and fire them if they exist. As you've not defined the "value" attribute in the tag the listener is not fired
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: valueChangeListener not working
 
Similar Threads
Ajax with JSF
valueChangeListener
valueChangeListener not called.
JSF event process handling
access ui components in custom valuechangelistener