6 Replies Latest reply on May 28, 2009 5:56 AM by Ilya Shaikovsky

    Problem using Richfaces.hideModalPanel

    Ranjan Baisak Newbie

      I am using Richfaces.hideModalPanel to hide a modal panel which was displayed as part of request submit confirmation. Please find the code below

      <rich:modalPanel id="metadata-inprogress" minHeight="100" minWidth="250" height="100"
       width="250" zindex="2000">
       <f:facet name="header">
       <h:outputText value="Metadata Batch insertiong request submitted...."></h:outputText>
       <f:facet name="controls">
       <h:graphicImage value="/images/close.png" style="cursor:pointer"
       onclick="Richfaces.hideModalPanel('metadata-inprogress')" />
       <h:outputText id="mptext1"
       value="Metadata Batch insert requested Successfully. You will get email after completion..." />
       <rich:panel styleClass="invisiblePanel">
       <a4j:commandButton id="mpCloseButton" styleClass="smallText" style="text-align:center;" onclick="Richfaces.hideModalPanel('metadata-inprogress')"
       value="OK" />

      I am using <rich:messages> to display messages, in case any error occurs during request processing. The problem is on clicking ok in the above <a4j:commandButton> , the messages are getting cleared. But if any error occurs, I want messages to be there though User can close the message panel.
      Any help