9 Replies Latest reply on Apr 30, 2010 8:33 AM by g4j

    Changing label style of h:outputText through validation

    g4j

      Hi folks!

       

      I wanna change color (css style) from fooId component automaticaly when validation happens. Is it possible? What have i do to get this funcionality?

       

      Example:

       

      <h:outputText value="#{foo}" id="fooId"/>
      <h:inputText value="#{bar}" id="barId" required="true"/>

       

      How change color from component represented by id "fooId"?