3 Replies Latest reply on May 29, 2008 5:44 PM by Flax Seed

    Trigger a rich message from server-side

    Flax Seed Newbie

      If I do server-side validation for a business rule and then update the message context should there be a failure, how can I trip the <rich:message> component to show the "error" flag for that field? Note, that I'm not using the traditional JSF "required" in this case, because the bizrules drive this from DROOLS.

      Currently my JSF component is as follows:

       <rich:message for="#{fieldId}" tooltip="true" showSummary="false"
       <f:facet name="passedMarker">
       <h:graphicImage alt="Required" title="Required" value="/images/passed.gif" />
       <f:facet name="errorMarker">
       <h:graphicImage alt="Required" title="Required" value="/images/error.gif" />