I'm using p:dataTable
Code: Select all
<h:form>
<h:outputLabel value="Id" for="input" />
<h:inputText id="input" label="Id" value="#{myBean.id}" />
<p:dataTable value="#{myBean.myList}" var="item"
rows="10" paginator="true" paginatorAlwaysVisible="false">
<p:column>
<f:facet name="header">My Item</f:facet>
<h:outputText value="#{item.id}" />
</p:column>
</p:dataTable>
<h:commandButton value="Search" action="#{myBean.search}">
<f:ajax execute="@form" render="@form"/>
</h:commandButton>
Then, when I fill the id input with any number, to retrieve only one result, it's like the dataTable is still showing the page 6.
Is it an issue?
Thanks!