0

I want to update the table without reloading the page using primefaces ajax, but I can't do it, page is reloaded. Here I realize ajax:

<p:commandButton value="#{letter}" action="searchByLetter" styleClass="noborder-button" actionListener="#{searchCriteria.setLetter(letter)}" >
   <p:ajax process="@form" update=":booksForm:booksList"/>
</p:commandButton>

Here I only want to restart the table

<h:form id="booksForm" >
    <p:dataGrid rowIndexVar="rowIndex" columns="2" lazy="true" var="b" 
                value="${libraryFacade.books}"  id="booksList" styleClass="books_list"  paginator="true" rows="2" 
                paginatorPosition="bottom" rowsPerPageTemplate="2,4,6" 
                paginatorTemplate="{RowsPerPageDropdown} {PageLinks}"  
                paginatorAlwaysVisible="true" emptyMessage="">
Bilal Dekar
  • 3,200
  • 4
  • 28
  • 53

0 Answers0