Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1205

PPR does not work commandLinks nested inside a dataTable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.7
    • PPRPanelGroup
    • None

    Description

      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>

      Attachments

        Activity

          People

            hazems Hazem Saleh
            tomsp Thomas Spiegl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: