Hi,
we're using <t:columns> to show data from a query result.
We would need to assign an unique id to columns based on data field
name, something like this:
<t:dataTable value="#{bean.rows}" var="g" ......>
<t:columns value="#{bean.columns}" var="col"
styleClass="#{col.styleClass}">
<f:facet name="header">
<h:commandLink id="#{col.name}" actionListener="#{bean.orderBy}">
<h:outputText value="#{col.label}"/>
</h:commandLink>
</f:facet>
<h:outputText value="#{g[col.name]}"/>
</t:columns>
</t:dataTable>
but obviously it's impossible to set id as a jsf variable.
some idea to solve this problem ?
We need the ID of column in "orderBy" method for retrieving the field
to be ordered.
--
Francesco Consumi
Ufficio Sistemi informativi
Istituto degli Innocenti
Piazza SS.Annunziata, 12
50122 Firenze
consumi at istitutodeglinnocenti.it
Tel. +39 055 2037320
ICQ# 12516133