No, you don't have to specify the class for each
column in order to get the row pattern.
here is small example:

=========== JSF CODE ==============================
<t:dataTable renderedIfEmpty="false" var="tp"
value="#{tpBean.tps}" 
                 cellpadding="0" cellspacing="0" rowClasses="tp ,
statusShadeTr" 
                 width="780" id="searchResultTable1" forceId="true">

============= HTML OUTPUT =======================

<tr class="tp"><td>106</td><td>81068amt6</td><td>Team
6  - Departures</td><td>81068</td></tr>
<tr
class="statusShadeTr"><td>151</td><td>115156NEW</td><td>Hardware
Asset Mgt - New</td><td>1151</td></tr>
<tr
class="tp"><td>201</td><td>2202RDPLY</td><td>Hardware
Asset Mgt - Redeployed</td><td>2202</td></tr>
<tr
class="statusShadeTr"><td>101</td><td>31013amt1</td><td>Team
1  - Primary tp</td><td>31013</td></tr>
<tr class="tp"><td>102</td><td>41024amt2</td><td>Team
2 - Secondary tp</td><td>41024</td></tr>

==========================================

as you can see, I had specified two classes for rows
and these classes are repeated alternatively when
generating html. 


--- Henke <[EMAIL PROTECTED]> wrote:

> 
> Thank you guys, especially Sushma, for your input.
> It really helped me.
> 
> If anyone else should stumble about this preoblem,
> here is a solution: it is
> apparently unevitable to have rowClasses create a
> pattern, which is
> reproduced on every page. Therefore now every
> <t:column> receives a style
> class determined by a searchItem, so it looks like
> that: <t:column
> styleClass="#{searchItem.rowColor}">
> 
> 
> 
> Henke wrote:
> > 
> > I have a t:dataTable with varying rowClasses.  The
> datatable is combined
> > with a paginator. The argument for rowClasses is
> bound to a backing bean,
> > which determines the style used for a certain row.
> Blocks of rows are
> > supposed to have a different background color.
> This works almost fine for
> > the first page, except the color of the first
> line, which is white. On the
> > following pages the row color pattern of the first
> page is repeated
> > including the white row. Can anybody show me the
> mistake?
> > 
> > The datatable’s parameters:
> > 
> > <t:dataTable id="searchResultList"
> rowIndexVar="index"
> >             styleClass="scrollerTable"
> headerClass="standardTable_Header"
> >             footerClass="standardTable_Header"
> >     
> rowClasses="#{searchCriteriaBean.searchRowColors}" 
> >             var="searchItem"
> >             value="#{searchCriteriaBean.searchResultList}"
> >             rows="10"
> >             style="width:100%">
> > 
> > 
> > Thank you 
> > Henke
> > 
> > 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/t%3AdataTable%E2%80%99s-rowclasses-displayed-incorrectly-tf4600440.html#a13254518
> Sent from the MyFaces - Users mailing list archive
> at Nabble.com.
> 
> 


    The word "Impossible" itself says " I m possible".
  Sushma




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to