It was not good day today, lazy model was working last friday and I turned today with surprises.
I have managed bean with ViewScoped.
I have lazyEntityModel as injected into the managed bean.
I expected to see lazyEntityModel.load method is called whenever filter/sort/pagination links happens in UI.
I am having primefaces 6.0 version.
This is my UI code:
Code: Select all
<ui:composition template="/templates/commonLayout.xhtml">
<ui:define name="content">
<h:form id="pdorfo-form">
<p:dataTable var="pdoRfoFlow" value="#{pdoRfoBean.pdoRfoLazyModel}" paginator="true" rows="10"
paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
rowsPerPageTemplate="5,10,15" selectionMode="single" selection="#{pdoRfoBean.selectedPdoRfoFlow}" id="pdoRfoFlowTable" lazy="true" rowKey="#{pdoRfoFlow.id}">
Dhana