the HTML contains also the false StyleClass (which means the view shows what the html gives), so it doesen't seems like an CSS problem.

Knudsen, Joe schrieb:
Did you look at the html to verify that your class has not changed?  You could 
be dealing with a CSS instead of a JSF issue.

-----Original Message-----
From: [email protected] [mailto:[email protected]] Sent: Wednesday, April 29, 2009 2:49 AM
To: MyFaces Discussion
Subject: no evaluation of the styleClass attribut on every serverroundtrip??

Hi,

i have a problem or maybe a bug, while i use EL in the styleClass-attribute.

I have two input fields with an validator. This validator sets the styleClass for the inputfield.
Like this <h:inputText value="#{myValue}" styleClass="#{bean.styleString}"/>
or this <h:inputText value="#{myValue}" styleClass="#{bean.error ? 'errorStyle':'noErrorStyle'}"/>

If set a false value over the webui and i get the right errorStyle. But if i delete the false value and save again the value is gone, but the style is still errorStyle. Next step, if i put now an other false value into the second inputfield, i get the right style for the first and the second inputfield. To be sure that the style-value changes if i delete the false value, i put the EL of the styleClass-attribute as a simple expression inside the page. And i see the EL value changes in the right way, but not my styleClass -attribute value :( .

Now my question, is it right that the renderer does not evaluate the styleClass Expression on every server roundtrip?

bb, Jörg


Reply via email to