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

    Changing label style of h:outputText through validation

    Gerson Luiz Novice

      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?




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


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