You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Ly Le <ll...@guardiananalytics.com> on 2006/12/20 22:04:26 UTC
Question about
Hi,
Here is the example for <t:columns> as posted on myfaces.org:
<t:datatable value="#{rows}" var="row">
<t:columns value="#{cols}" var="column">
<f:facet name="header" value="#{column.name}"/>
<h:outputText value="#{row.columnValue}"/>
</t:columns>
</t:datatable>
However, I would like the datamodel associated with the t:columns is a
property of the row variable, is that possible?
Here is what I would like to do:
<t:datatable value="#{rows}" var="row">
<t:columns value="#{row.cols}" var="column">
<f:facet name="header" value="#{column.name}"/>
<h:outputText value="#{row.columnValue}"/>
</t:columns>
</t:datatable>
I tried and the <t:columns> was not rendered correctly, just an empty
<td></td> was rendered.
Thanks.
-ly