No update done in selectOneMenu values.
dolos Jan 17, 2011 4:47 PMHi everybody and thanks in advance for helping me. I have an app with a rich:TabPanel wich contains 2 forms and 5 included JSP's in 7 tabs. There are no nested forms, but I'm having a problem with one of the forms. This forms contains 3 selectOneMenu, representing a hierarchy of clasifications, so when the user changes the value of the first selectOneMenu, the other two should change acordding to the selected value. To do this I'm using a4j:support tags with the onchange event, calling some methods that will obtain the corresponding values from database and set them into a ArrayList of SelectItems. Everything works ok in my localhost, and my test server, but in the production server the selectOneMenu's dosn't change. I have made many modifications trying to solve it but it's still not working just in that server, any idea to make it work? Here's a part of my code:
<rich:tab label="Ubicación PMD" disabled="#{not DetalleProgramaProyectoBean.subprograma}" id="tabUbicacion" switchType="client"> <a4j:form prependId="false" ajaxSubmit="true"> <a4j:loadBundle basename="com.copladem.utils.lineamientos" var="lineamientos"/> <h:panelGrid columns="2"> <a4j:commandLink oncomplete="#{rich:component('modalLineamientos')}.show()" reRender="lineamiento"> <h:graphicImage alt="?" style="border: 0px" value="/resources/Iconos/help.png"/> <f:setPropertyActionListener target="#{DetalleProgramaProyectoBean.msjLineamientos}" value="#{lineamientos.ubicacion}"/> </a4j:commandLink> <h:outputText id="nppUbicacion" style="font-weight: bold" value="Programa/Proyecto: #{DetalleProgramaProyectoBean.programa.nombre}"/> </h:panelGrid> <h:panelGrid columns ="2"> <h:outputText value="#{DetalleProgramaProyectoBean.programa.pdm.nombreClasificacion1}" style="font-weight: bold"/> <h:outputText value="#{DetalleProgramaProyectoBean.strClas1}" rendered="#{not LoginBean.programaEdicion}"/> <h:selectOneMenu id="cmbClas1" rendered="#{LoginBean.programaEdicion}" value="#{DetalleProgramaProyectoBean.clasificacion1}"> <f:selectItems value="#{DetalleProgramaProyectoBean.clasificaciones1}"/> <a4j:support action="#{DetalleProgramaProyectoBean.cargaCMBClasificacion2}" event="onchange" ajaxSingle="true" oncomplete="generaClave();" reRender="panelClas2,panelClas3"/> </h:selectOneMenu> <h:outputText style="font-weight: bold" value="#{DetalleProgramaProyectoBean.programa.pdm.nombreClasificacion2}"/> <h:outputText value="#{DetalleProgramaProyectoBean.strClas2}" rendered="#{not LoginBean.programaEdicion}"/> <a4j:outputPanel id="panelClas2" rendered="#{LoginBean.programaEdicion}"> <h:selectOneMenu id="cmbClas2" rendered="#{LoginBean.programaEdicion}" value="#{DetalleProgramaProyectoBean.clasificacion2}" immediate="true"> <f:selectItems value="#{DetalleProgramaProyectoBean.clasificaciones2}"/> <a4j:support action="#{DetalleProgramaProyectoBean.cargaCMBClasificacion3}" event="onchange" reRender="panelClas3" ajaxSingle="true" oncomplete="generaClave();"/> </h:selectOneMenu> </a4j:outputPanel> <h:outputText style="font-weight: bold" value="#{DetalleProgramaProyectoBean.programa.pdm.nombreClasificacion3}"/> <h:outputText value="#{DetalleProgramaProyectoBean.strClas3}" rendered="#{not LoginBean.programaEdicion}"/> <a4j:outputPanel id="panelClas3" rendered="#{LoginBean.programaEdicion}"> <h:selectOneMenu id="cmbClas3" rendered="#{LoginBean.programaEdicion}" value="#{DetalleProgramaProyectoBean.clasificacion3}" immediate="true"> <f:selectItems value="#{DetalleProgramaProyectoBean.clasificaciones3}"/> <a4j:support action="#{DetalleProgramaProyectoBean.GeneraClave}" event="onchange" reRender="txtClave"/> </h:selectOneMenu> </a4j:outputPanel> </h:panelGrid> </a4j:form> </rich:tab>