primefaces lazy model -> load not called

UI Components for JSF
Post Reply
anemdhana
Posts: 2
Joined: 21 Nov 2016, 13:22

21 Nov 2016, 13:31

Hi,
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}">
Thanks,
Dhana

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests