0

I have these scenario. An xhtml page with a datatable where I have a button to jump to another page:

<p:dataTable id="tablaSections" value="#{preventSectionMB.listSections}" var="item" paginator="false">
<p:column headerText="" style="width:90px;">
<p:commandButton action="listElementsSectionPrevent.xhtml" icon="fa fa-edit" title="Edit">
    <f:param name="faces-redirect" value="true"></f:param>
    <f:param name="idPrevent" value="#{item.idPrevent}"></f:param>
    <f:param name="idSection" value="#{item.idSection}"></f:param>
</p:commandButton>

It works fine, but I don´t know why before opening the new page (listElementsSectionPrevent.xhtml) it read seven times the preventSectionMB.listSections property from the managed beans

Thanks

0 Answers0