1 Reply Latest reply on Dec 9, 2011 7:49 AM by pvito

    <rich:extendedDataTable dynamic column issue

    ashis3011

      Hello Friends,

      I know there are couple of posting on this issue. I wanted to restate the issue if anyone has some suggestion.

       

      I am not able to access list of list in side <rich:extendedDataTable. here is the code :

       

      <rich:extendedDataTable value="#{somebean.resultRows}" var="resultRow"

                                                                    rows="#{validationResultListPage.pageSize}" id="validationResultId">

       

                                                                  <rich:column>

                        <f:facet name="header">

                                   <h:outputText value="header" />

                         </f:facet

                          <c:forEach items="#{resultRow.resultColumns}" var="vcol" varStatus="status">

                                         <h:outputText value="#{vcol.somevalue}" />

                          </c:forEach>

                                                                  </rich:column>

      </rich:extendedDataTable>

       

      Any input on this is greatly appreciate.

       

      Thanks

      A.

        • 1. Re: <rich:extendedDataTable dynamic column issue
          pvito

          Hi, Ashis

           

          This works for me:

           

          <rich:extendedDataTable value="#{somebean.resultRows}" var="resultRow" rows="#{validationResultListPage.pageSize}" id="validationResultId">

                  <rich:column>

                      <f:facet name="header">

                          <h:outputText value="header"/>

                      </f:facet>

                      <a4j:repeat value="#{resultRow.resultColumns}" var="vcol">

                          <h:outputText value="#{vcol.value2}"/>

                      </a4j:repeat>

                  </rich:column>

              </rich:extendedDataTable>