<t:dataTable ... sortColumn="#{bean.sortProperty}">
<t:column styleClass="#{bean.sortProperty eq 'myColumn' ? 'selected' :
'notselected'}">
<f:facet name="header">
<t:commandSortHeader columnName="myColumn">
<h:outputText value="sort me" />
</t:commandSortHeader>
</f:facet>
</t:column>
</t:dataTable>

On 7/3/07, KaiWeing <[EMAIL PROTECTED]> wrote:

Hello everyone,

I'm using the tomahawk extended data table and the sortCommandHeader facet.
However, I would need the selected column to have a different style than the
other columns and yet another one for the selected column header.

Of course the nicest would be to have the selected column class and header
class exposed as attributes of the component. I assume these are currently
not available and I would have to extend the component and the renderer, or
is there an easier way?

I could also live with setting a fixed styleClass for the selected column
during runtime (I guess I can do this via the columnClasses property of the
data table), but I have no solution for the distinct header style.

Any ideas would be much appreciated!

Kai



--
View this message in context: 
http://www.nabble.com/-Tomahawk--Special-style-class-for-selected-column--tf4019144.html#a11414834
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Reply via email to