3 Replies Latest reply on Oct 2, 2009 6:00 AM by juangon

    rich:messages in panel and modal panel

      From Panel I show modal panel. Panel have component rich:messages and modal panel have component rich:messages, when have exception in modal panel show exception only on panel not in modal panel. How show exception from modal panel only on modal panel? Thx

        • 1. Re: rich:messages in panel and modal panel
          juangon

          This is the config I am using working ok.

          Inside modal panel:


          <rich:messages id="modaPanelMessages" globalOnly="false" ajaxRendered="false">
          .
          .


          Inside the modal panel, if you have a commandButton or commandLink must do this:

          <a4j:commandButton id="saveButtonModalPanel"
          limitToList="true" actionListener="#{...}" .... />
          


          In rich:panel, messages may be like this:
          <rich:messages layout="list" globalOnly="true" ..../>
          


          • 2. Re: rich:messages in panel and modal panel

            thx. Try that

            • 3. Re: rich:messages in panel and modal panel
              juangon

              Ups I forgot one important thing.

              Because the messages inside modal panel are ajaxRendered="false", you must reRender it any time you make some action inside modalPanel which could cause any message (error, warning, info):

              <rich:messages id="modaPanelMessages" globalOnly="false"
              ajaxRendered="false"
              >
              .
              .
              
              
              
              <a4j:commandButton id="saveButtonModalPanel"
              limitToList="true" actionListener="#{...}" ....
              reRender="modaPanelMessages" />