2 Replies Latest reply on Mar 26, 2009 4:04 PM by nepoez.nepoez.gmail.com

    how to attach an action listener to a drop down menu

      hello,
               in my custmerList.xhtml file there is a drop down,after selecting the value here i want to attach the action listener to validate the unique key.can any body suggest me how to attach an action listener to drop down menu.
        there is a sample of code here thats not working.



      <s:decorate id="appFunctionField" template="layout/edit.xhtml">
          <ui:define name="label">#{messages['toms.application.properties.Function_code']}</ui:define>
             <h:selectOneMenu value="#{appRoleFunctionHome.instance.appFunction}" required="true" id="appFunction">
                      <s:selectItems value="#{appFunctionList.resultList}" var="appFunction" label="#{appFunction.id.functionCode}" noSelectionLabel="#{messages['toms.application.messages.Please_select']}"/>

      <a4j:support id="functionCodeField" event="onblur"
                              reRender="functionCodeField" ajaxSingle="true"
                            actionListener="#{appFunctionHome.verifyCarrierCodeAvailable}"/>
        <s:convertEntity />
         </h:selectOneMenu>
             </s:decorate>