myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado <laredotorn...@gmail.com>
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

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.


Mime
View raw message