Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
the following ppr example does not work.
<s:pprPanelGroup id="group" partialTriggers="edit">
<t:dataTable var="entity" value="#
<t:column>
<h:commandLink id="edit" value="#{project.name}" />
</h:commandLink>
</t:dataTable>
<s:pprPanelGroup>
problem: the pprPanelGroupRenderer renderer looks for it's triggers and renders the necessary PPR javascript. Therefore the renderer has to know the trigger's client id, which of course does not work in the example above.
solution: let the trigger components (UICommand components) render the necessecary PPR javascript itself. To enable UIComponents to be a PPR trigger, I suggest to add a <s:pprSubmit /> to a trigger component, like ...
<s:pprPanelGroup id="group" partialTriggers="edit">
<t:dataTable var="entity" value="#{backingBean.entities}
" >
<t:column>
<h:commandLink id="edit" value="#
">
<s:pprSubmit />
</h:commandLink>
</h:commandLink>
</t:dataTable>
<s:pprPanelGroup>