4 Replies Latest reply on Mar 1, 2011 2:46 PM by danielk

    Hide rich:modalPanel when facescontext.maximumseverity is IN

      Hi,

      I want hide a rich:modalPanel when the Message severity in FacesContext is SEVERITY_INFO.

      I have tried the following code,

      <a4j:commandButton value="Add"
       action="#{acadProgBean.add}"
       reRender="programTable"
       oncomplete="if (#{facesContext.maximumSeverity=='Info'}) Richfaces.hideModalPanel('addPanel')" />
      
      



      Its not working.

      Please Help.
      Akash