4 Replies Latest reply on Feb 4, 2009 12:00 PM by priestex

    Dynamic text inside datatable header

      Hi,

      I have a simple datatable where I am trying to use some dynamic text as the header:

      1. <rich:dataTable value="#{reportTableView.rowList}" var="row">
      2. <rich:column>
      3. <f:facet name="header">
      4. <h:outputText value="#{row.cellList[0].column.columnHeader}"/>
      5. </f:facet>
      6. <h:outputText value="#{row.cellList[0].displayValue}"/>
      7. </rich:column>
      8.</rich:dataTable>
      


      A constant value like the string 'ABC' as the value of outputtext on line 4 works fine.
      The dynamic value #{row.cellList[0].column.columnHeader shows the right value if used on line 6 outputtext.

      Is there a way for me to use the dynamic value as the column header?

      Thanks