0 Replies Latest reply on May 13, 2010 9:00 PM by Dan Acuff

    Help in Applying errorClass to INPUT BOX not just the message

    Dan Acuff Newbie

      What is the best way, Seam, RichFaces, A4J.. to apply an error class to an H:input box when it returns an error?




      <h:inputText styleClass="required" name="#{prefix}_lastName" id="#{prefix}_lastName"
                size="25" maxlength="50" value="#{address.lastName}" errorStyle="border: 1px solid red;" />
                 <h:message
                id="#{prefix}_lastNameMsg" for="#{prefix}_lastName"
                styleClass="errors" />