0

I have a problem , ajax the way it is in the low code does not call the exampleController.include( ) Someone can tell me what I'm doing wrong ?

         <h:form id="exampleForm">

            <p:panel toggleable="true" id="pgInfo">

               <h:panelGrid columns="2" cellpadding="2">
                  <p:inputMask value="" id="val"/>
               </h:panelGrid>

               <h:panelGrid columns="3" cellpadding="3">
                  <p:commandButton icon="ui-icon-disk" 
                    value="Add"
                    actionListener="#{exampleController.include()}" 
                    ajax="true" update="dataTable" process="pgInfo"/>  
               </h:panelGrid>

            </p:panel>

            <p:panel toggleable="true" id="panelTable" >
               <h:panelGrid columns="1" cellpadding="1">
                  <p:dataTable id="dataTable">

                     ...

                  </p:dataTable>
            </h:panelGrid>
        </p:panel>

     </h:form>
Kukeltje
  • 12,223
  • 4
  • 24
  • 47
Mamga
  • 121
  • 2
  • 12
  • Most likely one of the reasons mentioned in http://stackoverflow.com/questions/2118656/commandlink-commandbutton-ajax-backing-bean-action-listener-method-not-invoked – Kukeltje Mar 17 '15 at 20:03
  • I still can not identify the error here. tks – Mamga Mar 17 '15 at 20:31
  • Post your bean code (minimalistic but fully functional and valid) and did you check your method signature? Client side console logging, client side network tab etc? – Kukeltje Mar 17 '15 at 20:33
  • The method of the controller is not called and therefore does not generate error on the console. – Mamga Mar 17 '15 at 20:40
  • The **CLIENT** side consol can log alllll kinds of things even if a method on the server is not called. Please read and answer questions carefully. – Kukeltje Mar 17 '15 at 20:42
  • Sorry friend , I see here and post. tks – Mamga Mar 18 '15 at 11:15

0 Answers0