5 Replies Latest reply on Mar 4, 2011 9:43 AM by ilya_shaikovsky

    richfaces + jquery "Problems with af4:support"

    ramram888

      Hi All,

       

        I have the following tag in the JSP:

       

      <h:selectOneMenu id="driverLstId" value="#{lookupsBB.selectedLookup.driverLookupType}">

                                                                                                <f:selectItems value="#{lookupsBB.lstLookupDrivers}" />

                                                                                                <a4j:support event="onchange" reRender="lookupValsTblId" action="#{lookupsBB.resetLookupVals}" />

                                                                                      </h:selectOneMenu>

       

      <rich:dataTable value="#{lookupsBB.lstLookupValues}" var="lookup" id="lookupValsTblId">

                <f:facet name="header">

                          <rich:columnGroup>

                                    <rich:column width="100px">

                                              <h:outputText value="#{multiLangageBB.translation.code}" />

                                    </rich:column>

                          </rich:columnGroup>

                </f:facet>

                <rich:column width="100px">

                          <h:inputText value="#{lookup.lookupCode}"  />

                </rich:column>

      </rich:dataTable>

       

       

       

       

        and in the JS I have the following:

      jQuery("input, textarea, select").change(function(event){

             alert("test"); 

         });

       

       

      what is happening is the following on change the alert is appearing perfectly but once the driverLstId fires the onchange method the alert will stop appearing on the page.

      Any explenation on such behavior?

       

       

      Regards,

      Ram