Hi,

 


  I've seen in the MyFaces 1.2 that the
EditableValueHolder.setValueChangeListener method is deprecated and we
should now use addValueChangeListener(MethodExpressionValueChangeListener)
instead.


See:
http://myfaces.apache.org/core12/myfaces-api/apidocs/index.html?javax/faces/
component/UIComponent.html


So when I use the tag selectOneMenu with the attribute valueChangeListener
the listener is added to the selectOneMenu component, wright ?


<h:selectOneMenu value="#{flightController.selectedFlightCode}" 

                        onchange="submit()"

 
valueChangeListener="#{flightController.changeSelectedFlightCode}"

 
valueChangeListener="#{flightController.changeSelectedFlightCode2}">


                  <f:selectItems value="#{flightController.flightCodes}" />


 


But it seems that this is not the correct syntax :-(


.


 

Reply via email to