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