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

    Hide rich:modalPanel when facescontext.maximumseverity is IN

    Akash Singla Newbie

      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