I've a facelets page defining a p:datatable component with a nested p:commandLink invoking an action on the seleted rows, i.e.
Code: Select all
<p:dataTable id="euRequestDataTable"
styleClass="data"
value="#{euBusinessMergeRequestBean.records}"
var="euGroup"
rows="#{euBusinessMergeRequestBean.rowsPerPage}"
rowIndexVar="rowIndex"
first="#{euBusinessMergeRequestBean.rowIndex}"
paginator="true"
dynamic="true">
<p:column id="gnameCol">
<f:facet name="header">
<h:outputText value="#{bundle.GroupNameCaption}"/>
</f:facet>
<p:commandLink action="#{euBusinessMergeRequestBean.loadRequestGroupDetailAction}" id="loadRequestDetailAction" ajax="false" value="#{euGroup.groupName}" immediate="true">
<f:setPropertyActionListener target="#{euBusinessMergeRequestBean.selectedUuid}" value="#{euGroup.uuid}"/>
</p:commandLink>
</p:column>
</p:dataTable>
It seems that the commandLink renderer works differently when called inside the method DataTableRenderer.encodePartially, as if i'm not wrong this method is called only when we use the pagination in dynamic mode.
I've tried also in using an h:commandLink but in this case i get a DataError raised from jquery when it parse the xml generated by the DataTableRenderer.encodePartially method (i've verified this using firebug and in this case the generated xml is not well formed).
Any idea to solve this problem? We need ajax pagination as sometimes our application shows a lot of rows.
Thanks