You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by AmolY <ay...@webifyservices.com> on 2003/07/01 07:36:27 UTC
Getting the Alternative Colors for Rows of Table
Hi All,
I am Climbing the Tapestry Mountain with the BABY Steps.I mean I am the one of the Starters in this MVC Model.
I have design a Table using Tapestry and I got stuck up at the following Problem.
PROBLEM STATEMENT :-
1>> I am using following code to construct the Simple table
<table cellspacing=""> <tr> <td>Color Code</td> <td> </td> <td>Name</td> <td> </td> <td>Last Name</td> </tr> <tr> <td colspan="5"><hr></td> </tr>
<tr jwcid="@Foreach" source="ognl:customerList" value="ognl:customer" element="tr">
<td bgcolor="#cccccc"><span jwcid="@Insert" value="ognl:customer.id"/></td> <td bgcolor="#cccccc"> </td> <td bgcolor="#cccccc"><span jwcid="@Insert" value="ognl:customer.fullName"/></td> <td bgcolor="#cccccc"> </td> <td bgcolor="#cccccc">
<u><span jwcid="@Insert" value="ognl:customer.memberLevel"/></u></td>
</tr>
</table>
My Question/Query is:-
If I want my Table Rows with Alternative Colors then How shall I proceed further with the above ? (what modifications nedds to be adapted)
or Is there any other approch to acheive the task?
I have tried out with the Conditional Component but According to me Its not fetching the desired results as I expected.
Ur all Valuable Suggestions are Welcome.
Thankx.
Best Regds,
Amol Yadwadkar
Re: Getting the Alternative Colors for Rows of Table
Posted by Luis Neves <ln...@netcabo.pt>.
On Tuesday 01 July 2003 06:36, AmolY wrote:
>
> If I want my Table Rows with Alternative Colors then How shall I proceed
> further with the above ? (what modifications nedds to be adapted) or Is
> there any other approch to acheive the task?
Look at the EvenOdd HelperBean.
http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/bean/EvenOdd.html
The Exception page uses it to redener alternate row colors.
Best regards,
Luis Neves