Re: How to dynamically bind css class to tr (worepetition)
Miguel Angel Torres Avila <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Tony, A way of doing that is to change the "bgcolor" attribute in your WOGenericContainer for a "class" or "id" attribute (it depends on the definition of your css). Then the function in the java class that used to return the bgcolor should change to return the class or id name. Hope this helps. On Aug 1, 2006, at 11:27 AM, Tony Hoffman wrote: > 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 _______________________________ Ing. Miguel Angel Torres Avila Diseñador de sistemas Tel/Fax: +52 (33) 3367 1892 Cel: +52 (33) 3106 8758 E-mail: [email protected] www.toracom.net _______________________________________________ WebObjects-dev mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/webobjects-dev