Primefaces - Ajax commandButton

时间:2015-03-17 19:50:57

标签: ajax jsf primefaces

我有一个问题,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>

0 个答案:

没有答案