Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-11382

Datatable and ExtendedDatatable evaluate value attribute even if rendered=false

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Final, 4.1.0.Milestone2
    • Fix Version/s: 4.3.0.M3
    • Component/s: component-tables
    • Labels:
    • Environment:

      Fedora 15, Glassfish 3.1.1, CDI (Weld)

      Description

      In Richfaces 4 both datatable and extendedDatatable evaluate the value attribute even when rendered is set to false, even though it is not necessary. This makes it hard to achieve performance by trimming parts of the view tree. The built-in h:dataTable behaves correctly in that case.

      To reproduce simply try this snipplet:

      <h:form>
           <rich:dataTable value="#{myBean.property}" rendered="false">
            </rich:dataTable>
      </h:form>
      

      Side note: The reason I'm posting this is, that i want to embed a rich:dataTable in a ajax loaded rich:togglePanelItem which is loaded on demand. Probably fixing the "render" problem will also make the dataTable lazy-loadable when switching to the corresponding togglePanelItem.

      I hope this is no duplicate, I only found RichFaces 3 issues mentioning this problem.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bleathem Brian Leathem
                  Reporter:
                  fkaempfer Frederick Kämpfer
                • Votes:
                  6 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 4 hours
                    4h
                    Remaining:
                    Remaining Estimate - 4 hours
                    4h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified