4 Replies Latest reply on Dec 2, 2009 1:20 PM by Adrien Adrien

    Display error message with facet for error from validator an

    Adrien Adrien Apprentice

      I would like to display in richmessage a link when errors occurs for an input field. I've put a rich:message with facet, it's works for only required message and never for error from validator.
      Any body have an idea of what i need to do this?

      <h:inputText rendered="#{ctrlCreateUser.activeCodePostal}" id="nucp" value="#{ctrlCreateUser.codepostal}" size="10" maxlength="10" required="#{ctrlCreateUser.activeCodePostal}" >
       <f:validator validatorId="codePostalValidator" />
       <rich:message for="fnew:nucp" styleClass="error">
       <f:facet name="errorMarker">
       <h:outputLink style="color:white;font-style: bold;" title="Recherche code postaux" target="_blank" value="/pages/pub/cpsearchforlogin.jsf"> [?]</h:outputLink>