Results 1 to 2 of 2

Thread: Spring Faces valueChangeListener actionChangeListener

  1. #1
    Join Date
    Oct 2008
    Location
    Northern Virginia
    Posts
    1

    Default 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. #2
    Join Date
    Oct 2008
    Posts
    13

    Default

    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
  •