2 Replies Latest reply on Feb 9, 2009 10:56 AM by Tom Hombergs

    Prevent global messages from showing

    Tom Hombergs Newbie

      Hey there,

      this is actually more a JSF problem that a Seam problem, but someone here hopefully knows the answer google didn't want me to find...

      I have a problem with global FacesMessages showing in more than one place. On the top of the page, I have the standard seam-gen messages output block:

      <h:messages id="messages" globalOnly="true" styleClass="message"
              errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
              rendered="#{showGlobalMessages != 'false'}"/>

      Somewhere in the page content, I put another messages-block to output messages specific to an input form:

      <h:messages id="myCustomMessages" />

      The problem: this second messages block not only displays the form-specific messages, but also all global messages like successfully logged in, so that the global messages are displayed twice: once in the global messages block and once in the form-specific block.

      How can I tell the second messages block NOT to show global messages?