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

    Display error message with facet for error from validator an

    jadtn

      Hi,
      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" />
       </h:inputText>
      
       <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>
      
       </f:facet>
       </rich:message>