Note that there are some explanatory texts on larger screens.

plurals
  1. POPrimefaces Datatable filtering and pagination issue
    text
    copied!<p>I am using the JSF 2.0 and primefaces 3.5. the problem i am facing is i have created a datatable on a page .. every things works fine along with pagination and filtering, but when i include the same page into the template ... the pagination and filtering stop working.. any idea regarding this the code is </p> <pre><code>&lt;h:form id="form"&gt; &lt;p:dataTable var="row" rowKey="row.attackID" value="#{attackBean.list}" id="tableAttack" paginator="true" rows="10" selection="#{attackBean.selectedAttack}" filteredValue="#{attackBean.filteredAttack}" rowsPerPageTemplate="5,10,15" selectionMode="single"&gt; &lt;p:ajax event="rowSelect" update=":centerForm:form:display" oncomplete="dlg.show()" /&gt; &lt;p:column headerText="Attack-ID" filterBy="#{row.attackID}"&gt; &lt;h:outputText value="#{row.attackID}" /&gt; &lt;/p:column&gt; &lt;p:column headerText="Action Name" filterBy="#{row.attackName}"&gt; &lt;h:outputText value="#{row.attackName}" /&gt; &lt;/p:column&gt; &lt;p:column headerText="Defended User" filterBy="#{row.userID}"&gt; &lt;h:outputText value="#{row.userID}" /&gt; &lt;/p:column&gt; &lt;p:column headerText="Action Taken"&gt; &lt;h:outputText value="#{row.actionTaken}" /&gt; &lt;/p:column&gt; &lt;p:column headerText="Attack Time"&gt; &lt;h:outputText value="#{row.attackTime}" /&gt; &lt;/p:column&gt; &lt;/p:dataTable&gt; &lt;p:dialog id="tDialog" header="Threat info" widgetVar="dlg" modal="true" height="250" width="300" showEffect="explode" hideEffect="bounce"&gt; &lt;h:panelGrid id="display" columns="1" cellpadding="4"&gt; &lt;h:outputText value="Attack ID: #{attackBean.selectedAttack.attackID} " /&gt; &lt;h:outputText value="Description: #{attackBean.selectedAttack.userID}" /&gt; &lt;h:outputText value="Action Taken: #{attackBean.selectedAttack.actionTaken}" /&gt; &lt;/h:panelGrid&gt; &lt;/p:dialog&gt; &lt;/h:form&gt; </code></pre> <p>here is the main templete code </p> <pre><code> &lt;h:body style=""&gt; &lt;div id="page" &gt; &lt;h:panelGroup id="mainPanel"&gt; &lt;div id="left" class="bar"&gt; &lt;ui:insert name="left"&gt; &lt;ui:include src="commonLeft.xhtml" /&gt; &lt;/ui:insert&gt; &lt;/div&gt; &lt;div id="center"&gt; &lt;div id="hDiv"&gt; &lt;ui:insert name="left"&gt; &lt;ui:include src="commonHeader.xhtml" /&gt; &lt;/ui:insert&gt; &lt;/div&gt; &lt;div id="cDiv"&gt; &lt;h:form id="centerForm"&gt; &lt;h:panelGroup id="centerPanel" render="mainPanel"&gt; &lt;ui:include src="#{browse.url}" /&gt; &lt;/h:panelGroup&gt; &lt;/h:form&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="right" &gt; &lt;ui:insert name="right"&gt; &lt;ui:include src="commonFooter.xhtml" /&gt; &lt;/ui:insert&gt; &lt;/div&gt; &lt;/h:panelGroup&gt; &lt;/div&gt; &lt;/h:body&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload