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" />