Announcement Announcement Module
Collapse
No announcement yet.
Spring Faces valueChangeListener actionChangeListener Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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>

  • #2
    I am also looking for the solution. Have you solved it?

    Comment

    Working...
    X