2 Replies Latest reply on Apr 5, 2013 2:06 PM by edgarms_ver_mx

    a4j:commandButton doesn't invoke action method

    edgarms_ver_mx

      Hi I newbe on Richfaces, I found a lot information about this error but any solution provided in the others discussions solved my problem.

       

      The next commandButton is working fine:

                                      <a4j:commandButton rendered="#{adminFacturasBean.tipoFormFormaPago eq 1}"

                                                         value="Agregar Cuenta"

                                                         action="#{adminFacturasBean.agregarCuentaPagoTrans}"

                                                         render="mensajeErrorFormaPago"

                                                         execute="formaPago"

                                                         oncomplete="if (#{!adminFacturasBean.mostrarMensaje}) {#{rich:component('formaPago')}.hide(); #{rich:component('adminCuentas')}.hide();}"/>

       

      But the next commandButton is not working:

                              <a4j:commandButton rendered="#{adminFacturasBean.tipoForm eq 1}"

                                                 value="Crear"

                                                 action="#{adminFacturasBean.crearFactura}"

                                                 render="mensajeErrorFacturas, tablaFacturas"

                                                 execute="crearElemento"

                                                 oncomplete="if (#{!adminFacturasBean.mostrarMensaje}) {#{rich:component('crearElemento')}.hide();}"/>

       

      I don't understand why is not working because I was working fine at the beggining, now the action method is not invoked.

       

      Can someone help me ??

       

      Thanks a lot in advanced.