java - valueChangeListener in JSF 1.1 not working -


i m working on jsf 1.1 , , want create radio button event immediate result on change.

i created stuff:

<h:panelgrid>     <h:selectoneradio            value="#{reservationhelperbean.listreservationfordailyviewradio}"            valuechangelistener="#{reservationhelperbean.onloadreservations}" onchange="submit()"            immediate="true">     <f:selectitem itemvalue="red" itemlabel="color1 - red" />     <f:selectitem itemvalue="green" itemlabel="color1 - green" />     <f:selectitem itemvalue="blue" itemlabel="color1 - blue" /> </h:selectoneradio> 

and method in bean, handles valuechangeevent is:

public void loadreservations(final valuechangeevent evt){     string resercriteria = (string)evt.getnewvalue();     system.out.println("<><><><><><><><>< "+resercriteria);     setlistreservationfordailyviewradio(resercriteria); }  

but it's not working. after radio click getting error_

java.lang.nosuchmethodexception: org.azureworlds.beans.pms.helper.reservationhelperbean.onloadreservations(javax.faces.event.valuechangeevent) 

is 1 going wrong?

ans when cut listener , re paste in it, working (calling end)


Comments