add stylclass

Hi,

i can bind stylclass property to String, but creator add her class to the element for example i want to add des2 class i found in the html code class="des2 TblTdLyt", creator add her default class in the second place, this not enable me to supplant background color for example, how to do this without javascript.

Regards

Walid

[356 byte] By [walid.ka] at [2007-11-27 9:09:22]
# 1

I think you don't necessarily need to bind any style but an understanding of the precedence will help. If you haven't already looked over this tutorial from the Learning section on Adding Styles to Components, it might help solve how you go about overwriting the style of the class from the theme in the stylesheet.css file . See http://developers.sun.com/jscreator/learning/tutorials/2/stylesheets_comps.html

There is also a tutorial on building your own theme: http://developers.sun.com/jscreator/learning/tutorials/2/themes.html

3431603a at 2007-7-12 21:49:16 > top of Java-index,Development Tools,Java Tools...
# 2
Thanks for your replay,i don't want cusomise css class, i want change it if i have some conditions, but creator always add her default class
walid.ka at 2007-7-12 21:49:16 > top of Java-index,Development Tools,Java Tools...