0 Replies Latest reply on Nov 29, 2010 6:40 AM by ashish joshi

    ModalPanel and Messages

    ashish joshi Newbie

      Hi,

       

      A modalPanel is used for editing a record which is selected from a dataTable on the parent page.

      In case of any validation error, error messages are getting properly displayed using <rich:message for="....."/> tag.

       

      However, global messages(using <rich:messages globalOnly="true" ajaxRendered="true" />) are not getting displayed.

       

      Also, success messages which are to be displayed on parent window are not getting displayed.

       

      For displaying sucess messages, following is used on the template which used by the parent page(and other pages as well).

       

       

      <a4j:outputPanel id="successMsgPanel"        
                          ajaxRendered="true" rendered="#{facesContext.maximumSeverity.ordinal == 1}"
                          styleClass="successMsg">                 
                         <rich:messages globalOnly="true"/>
      </a4j:outputPanel>

       

      In both the above cases(global success and error msgs) following is displayed on console-

       

      "WARNING: There are some unhandled FacesMessages, this means not every FacesMessage had a chance to be rendered."

       

       

      Regards