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

    Trigger a rich message from server-side

    locutusut

      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:

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


      Thanks!