Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Primefaces-Ajax命令按钮_Ajax_Jsf_Primefaces - Fatal编程技术网

Primefaces-Ajax命令按钮

Primefaces-Ajax命令按钮,ajax,jsf,primefaces,Ajax,Jsf,Primefaces,我有一个问题,ajax在底层代码中的方式不调用exampleController.include 有人能告诉我我做错了什么吗 <h:form id="exampleForm"> <p:panel toggleable="true" id="pgInfo"> <h:panelGrid columns="2" cellpadding="2"> <p

我有一个问题,ajax在底层代码中的方式不调用exampleController.include 有人能告诉我我做错了什么吗

         <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>

最有可能的原因之一,我仍然无法确定这里的错误。tksPost您的bean代码非常简单,但功能齐全且有效,您是否检查了方法签名?客户端控制台日志记录、客户端网络选项卡等?未调用控制器的方法,因此不会在控制台上生成错误。即使未调用服务器上的方法,客户端控制台也可以记录所有类型的内容。请仔细阅读并回答问题。