managed bean value set style class

HI,#{Bean.Name}I am getting value from managed bean to jsf page.In jsf page based on this value i need to set style class.can any one knows how to set style based on managed bean value?thankssiva
[244 byte] By [sivasaia] at [2007-11-27 5:08:44]
# 1

You can use conditional statements in EL.

Assuming that #{bean.name} returns a String:<h:someComponent styleClass="#{bean.name == 'foo' ? 'style1' : 'style2'}" />

Further on please respect the use of letter casing. Instance and variable names starts with lowecase, so also the managed bean name and the property name.

BalusCa at 2007-7-12 10:28:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks.
sivasaia at 2007-7-12 10:28:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...