myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ABOUSSOROR El Arbi" <el-arbi.abousso...@sogeti.com>
Subject MyFaces 1.2 : attribute valueChangeListener
Date Thu, 29 Jul 2010 09:18:46 GMT
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 :-(


.


 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message