Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3239

ui:fragment ignores rendered attribute if nested in h:dataTable or h:panelGroup

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.6, 2.0.7, 2.1.0, 2.1.1
    • Fix Version/s: 2.0.8, 2.1.2
    • Component/s: General
    • Labels:
      None

      Description

      When nested inside h:dataTable or h:panelGroup, ui:fragment is always rendered even if rendered="false"

      In the following example, 'This text should not appear' appears in the output. And it shouldn't.

      <h:dataTable id="dtTable" value="#

      {myBean.someList}

      " var="row">
      <h:column>
      <ui:fragment rendered="false">
      <h:outputText value="This text should not appear"/>
      </ui:fragment>
      </h:column>
      </h:dataTable>

      This example with h:panelGroup is similar
      <h:panelGroup id="somePanel">
      <ui:fragment rendered="false">
      <h:outputText value="This text should not appear either"/>
      </ui:fragment>
      </h:panelGroup>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lu4242 Leonardo Uribe
                Reporter:
                peterkemp Peter Kemp
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: