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

Reply via email to