1 Reply Latest reply on Feb 22, 2010 10:07 AM by ilya_shaikovsky

    rich:message appears upon first loading form. Possible only upon validation?

    deadlock_gr

      Hi,

       

      When I use h:message like below, the chechboxes are rendered when my form is first rendered. I want the rich:message to appear only when I press the submit button, when the form is submitted and validation is performed. How can I do this?

       

      Cheers!

       

                                         <rich:message for="applicantName"
                                         styleClass="errorMessage">
                                         <f:facet name="passedMarker">
                                              <h:graphicImage value="/images/icons/validation/passed.gif" />
                                         </f:facet>
                                         <f:facet name="errorMarker">
                                              <h:graphicImage value="/images/icons/validation/error.gif" />
                                         </f:facet>