8 Replies Latest reply on Jun 14, 2008 8:17 PM by Francois Eric

    SelectOneMenu onchange

    Francois Eric Novice


      Is it possible to have an event called when the selectOneMenu component is modified.

      For example for the locale selection:

                  <h:form id="locale">
                      <h:selectOneMenu value="#{localeSelector.localeString}" >
                          <f:selectItems value="#{localeSelector.supportedLocales}"/>
                      <h:commandButton action="#{localeSelector.select}" value="#{messages['ChangeLanguage']}"/>

      I would prefer not to have any commandButton but rather only a select and when you change the select the method


      would be called.

      Is this possible? Is so how?

      Thank you,