myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado <>
Subject Problem with h:dataTable styling
Date Tue, 04 Nov 2008 20:55:46 GMT

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

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"
   <f:facet name="header">
      <h:outputText value="Results
#{SearchBean.startResultRow}-#{SearchBean.lastResultRow} of
#{SearchBean.numResults} (#{SearchBean.numPages} page(s))" />
      <f:facet name="header">
         <h:outputText value="Client System" />
      <h:outputText value="#{item.clientSys}"></h:outputText>

"f:facet" doesn't support styleClass, so I pose this question to the group
for inspiration. Thanks, - Dave 
View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message