PPR does not work commandLinks nested inside a dataTable
--------------------------------------------------------

                 Key: TOMAHAWK-1205
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1205
             Project: MyFaces Tomahawk
          Issue Type: Improvement
          Components: PPRPanelGroup
            Reporter: Thomas Spiegl
            Assignee: Thomas Spiegl
             Fix For: 1.1.7-SNAPSHOT


the following ppr example does not work.

<s:pprPanelGroup id="group" partialTriggers="edit">
      <t:dataTable var="entity" value="#{backingBean.entities}" >
             <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="#{project.name}">
                        <s:pprSubmit />
                  </h:commandLink>
              </h:commandLink>
      </t:dataTable>
<s:pprPanelGroup>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to