Hi, I posted this message a few months back but I could not find the response. I am starting to look into tapestry again for an upcoming application and have a question regarding settings the class attribute for a row when using Foreach.

I've looked at the Portal tutorial which uses the EvenOdd class to accomplish this. Is there any other way of doing it? I don't like the fact that the style sheet class is specified in the java class. I would like the designers to control this. Is there anyway to specifiy the style sheet class used for the alternating row in the html source or component specification? We have pages that use different CSS classes for the alternating rows which depends on the dataset that we are outputting. For example, DataSetA would use "altrow1" and "altrow2" for the EvenOdd class attribute, and DataSetB would have "altrow3" and "altrow4" as the EvenOdd class attribute. Both these datasets would be in the same page.

thanks,
Steve


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to