0 Replies Latest reply on Jan 28, 2010 11:18 AM by Abhinandan Yadav

    How to clear rich:messages from Javascript or Jquery

    Abhinandan Yadav Newbie

      I am using below code to display error/info messages in xhtml file:

      <rich:messages errorLabelClass="error_Label_Class" infoLabelClass="info_Label_Class" id="msgId"   >
         <f:facet name="errorMarker">
            <h:graphicImage value="error.png"/>
        <f:facet name="infoMarker"> 
           <h:graphicImage value="info.png"/>

      My requirement is to clear message displayed when a button is clicked to perform an action event.(ie I want to clear message before control goes to do some business functionality).

      Could any one suggest how can I do it.

      Thanks in advance