8 Replies Latest reply on Nov 16, 2007 4:13 AM by Sei Syvalta

    rich:message and validation error string


      I'm trying to get a friendly and custom messge for my inputs fields, and found a problem that can't resolve yet.

      My code looks like this:

      <h:outputText styleClass="rsLabel" value="Username" />
      <h:inputText id="idUsername" styleClass="rsInput" value="#{login.username}"
       required="true" size="15" maxlength="10" label="Username">
       <f:validateLength maximum="10" minimum="1"/>
      <rich:message for="idUsername" tooltip="true">
       <f:facet name="passedMarker">
       <h:graphicImage value="/images/ajax/passed.gif" />
       <f:facet name="errorMarker">
       <h:graphicImage value="/images/ajax/error.gif" />

      All works fine, but my problem is that when happend a validator error, I get something like:
      Username: Validation Error: Value is required.

      And I want that error message show only:
      Username: Value is required.

      How can I void string "Validation Error" and ":" separator?.