You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by laredotornado <la...@gmail.com> on 2008/11/04 21:55:46 UTC
Problem with h:dataTable styling
Hi, I'm using MyFaces 1.1.5. Does anyone know how to make a dataTable's main
header row class different from that of the cell's header rows? For example,
if you look at the screen shot
http://screencast.com/t/T7sN6r3B
I want the "Results 1-20" row to have a different class than the row with
the column titles ("Client System", "Destination System", etc.). Here's the
(unsuccessful) JSF I'm using ...
<h:dataTable id="dt1" binding="#{SearchResultsPage.dataTable}"
value="#{SearchBean.results}" var="item" border="10" cellpadding="5"
cellspacing="3" dir="LTR" frame="hsides" rules="all"
columnClasses="tableHeader" rowClasses="evenRow,oddRow"
headerClass="tableHeader2">
<f:facet name="header">
<h:outputText value="Results
#{SearchBean.startResultRow}-#{SearchBean.lastResultRow} of
#{SearchBean.numResults} (#{SearchBean.numPages} page(s))" />
</f:facet>
<h:column>
<f:facet name="header">
<h:outputText value="Client System" />
</f:facet>
<h:outputText value="#{item.clientSys}"></h:outputText>
</h:column>
"f:facet" doesn't support styleClass, so I pose this question to the group
for inspiration. Thanks, - Dave
--
View this message in context: http://www.nabble.com/Problem-with-h%3AdataTable-styling-tp20330921p20330921.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.