Hello Gianluca,
this should work. Can you send the complete page, please.
If you are using facelets a note:
The facelet-extensions didn't support valueChangeListener. The
facelet-extensions are only compositions.
See:
http://svn.apache.org/repos/asf/myfaces/tobago/trunk/extension/facelets/src/main/resources/META-INF/selectOneChoice.xml
The current snapshot of the tobago-facelet.jar supports the
tobago/extension for jsp, now.
This kind of question should asked on the user list.
Regards
Bernd
Gianluca Correndo wrote:
Hello everyone,
I'm trying to use selectOneChoice component using an event listener for
updating the new values setted on the component.
It does not work.
The method is not called.
I tried even to add a facet "change" to the component:
<tx:selectOneChoice label="mapper"
valueChangeListener="#{OntologyManager.mapperNameChanged}"
value="#{OntologyManager.mapperName}">
<f:selectItems value="#{OntologyManager.availableOntologyMapper}" />
<f:facet name="change">
<tc:command />
</f:facet>
</tx:selectOneChoice>
The method "mapperNameChanged" is still NOT called and the form that embed the
choice component (a popup) disappear as I submit an action.
Am I misunderstanding the actual behaviour of the "valueChangeListener" of the
component? From the javadoc and from the tutorials seems not so.
Gianluca
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the
tools to get online.
http://smallbusiness.yahoo.com/webhosting