How to dynamically bind css class to tr (worepetition)

Tony Hoffman <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
I've been looking over the lists and documentation but I can't find  
an answer to what I think is a simple question.

I am in the process of converting a website from simple html to css.  
The chief problem I am having is setting the background color in  
WORepetition table rows. Previously, I created a WOGenericContainer  
inside the WORepetition and bound the element "TR" to the attribute  
"bgcolor" where the binding was set to a method that returned a  
string (background color) based on the value of an object. This  
worked swimmingly.

Now, however, I would like to have the WOGenericContainer set the  
background color based on my css stylesheet. I don't know if I should  
(or how to) have the elementName / attribute / binding settings work  
to insert a class tag on a table row, or if I should reconfigure the  
Java code to somehow return a background string by referring to my  
stylesheet.

Does anyone have any advice on setting the background color of a  
WORepetition based on an external CSS stylesheet?




Tony Hoffman
Dog Eat Dog Advertising, Inc.
67 West Chippewa Street, Suite 100
Buffalo, New York 14202-2010
Phone: 716-856-0142 / Fax: 716-856-0176
www.superfetch.com

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.