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

    SelectOneMenu onchange

    Francois Eric Novice

      Hi,


      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:selectOneMenu>
                      <h:commandButton action="#{localeSelector.select}" value="#{messages['ChangeLanguage']}"/>
                  </h:form>
      



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


      #{localeSelector.select}
      



      would be called.


      Is this possible? Is so how?


      Thank you,


      Francois