-
Oct 2nd, 2008, 06:41 AM
#1
Spring Faces valueChangeListener actionChangeListener
Can someone give a pointer to a good explanation of how the change listener functionality works in the faces support?
I didn't see any references to the concept in the reference.
I would really like to understand how it works, but for a specific example of what I am trying to migrate.
I have two dropdowns. The selection of the first dropdown loads the values of the second dropdown.
<h:selectOneMenu id="topic"
value="#{model.topic}"
valueChangeListener="#{model.topicChanged}"
onchange=submit();">
<f:selectItems value="#{model.topicList}"/>
</h:selectOneMenu>
When a selection in the topic dropdown, the model.topicChanged loads the subtopic values.
<h:selectOneMenu id="subTopic"
rendered="#{model.displaysubTopic}"
value="#{model.utility}"
valueChangeListener="#{model.subTopicChanged}"
onchange="submit()">
<f:selectItems value="#{model.subTopicList}"/>
</h:selectOneMenu>
-
Nov 26th, 2008, 09:23 AM
#2
I am also looking for the solution. Have you solved it?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules