4 Replies Latest reply on May 21, 2011 9:30 AM by ilya_shaikovsky

    rendered attribute of <rich:dataTable>

    elisei

      Hi,

       

      I experience some problems with the <rich:datatable> component. When I set rendered="#{false}" the component is rendered and no rows are shown. But it actually ignores that option.

       

      Did anyone else experience the same problem?

       

      Greets,

       

      /Elisei

        • 1. rendered attribute of <rich:dataTable>
          wenggh007

          i can't fully understand what you mean.

           

          rendered value should be for a data object,not true/false

          • 2. rendered attribute of <rich:dataTable>
            elisei

            I understand it like the doc says:

             

            Library: http://richfaces.org/rich (http://richfaces.org/rich)

            Tag: dataTable

            rendered

            Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true.

             

            So, a true or false flag. I use exactly the same flag on columns and that works.

            • 3. rendered attribute of <rich:dataTable>
              ilya_shaikovsky

              elisei you get the docs fine.

               

              Here is what I quickly checked :

              <h:form>

                                  <h:selectBooleanCheckbox id="ch">

                                            <a4j:ajax render="table" />

                                  </h:selectBooleanCheckbox>

                        </h:form>

                        <a4j:outputPanel id="table">

                                  <rich:dataTable rendered="#{rich:findComponent('ch').value}"

                                            width="700" var="record" value="#{reportBean.expReport.records}">

              ...

              and it works fine. table getting completelly hidden and shown while changing the checkbox state.

              • 4. rendered attribute of <rich:dataTable>
                ilya_shaikovsky

                Post should be moved to RichFaces space. That space for RF design discussions.