Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 89595 invoked from network); 3 Jan 2006 21:18:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jan 2006 21:18:18 -0000 Received: (qmail 77585 invoked by uid 500); 3 Jan 2006 21:18:13 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 77542 invoked by uid 500); 3 Jan 2006 21:18:12 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 77531 invoked by uid 99); 3 Jan 2006 21:18:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 13:18:12 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [210.86.15.187] (HELO mta205-rme.xtra.co.nz) (210.86.15.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 13:18:11 -0800 Received: from mta3-rme.xtra.co.nz ([210.86.15.140]) by mta205-rme.xtra.co.nz with ESMTP id <20060103211739.CDQX4186.mta205-rme.xtra.co.nz@mta3-rme.xtra.co.nz> for ; Wed, 4 Jan 2006 10:17:39 +1300 Received: from [10.3.192.52] ([210.54.44.187]) by mta3-rme.xtra.co.nz with ESMTP id <20060103211738.CEXX14226.mta3-rme.xtra.co.nz@[10.3.192.52]> for ; Wed, 4 Jan 2006 10:17:38 +1300 Message-ID: <43BAEA7B.90806@obsidium.com> Date: Wed, 04 Jan 2006 10:19:55 +1300 From: Simon Kitching User-Agent: Thunderbird 1.4 (X11/20050908) MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: AW: messages outputs one error message summary many times References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Matthias, A FacesMessage object has both a "summary" and "detail". Perhaps both are being set to the same string and you are showing both, resulting in the same message appearing twice? Regards, Simon Matthias Kahlau wrote: > Hi! > > Did anybody else discover the behaviour of h:messages described below? I > can't imagine that I've done sth. wrong, but please correct me if I'm wrong. > There's only one h:messages tag in my JSF page, and when one error occurs, > the same error message is printed multiple times (2 to x times). Is there a > way to prevent this? > > > Regards, > > Matthias > >> -----Urspr�ngliche Nachricht----- >> Von: users-return-14489-mkahlau=web.de@myfaces.apache.org >> [mailto:users-return-14489-mkahlau=web.de@myfaces.apache.org]Im Auftrag >> von Matthias Kahlau >> Gesendet: Sonntag, 1. Januar 2006 22:09 >> An: Users MyFaces >> Betreff: h:messages outputs one error message summary many times >> >> >> Hi all! >> >> >> I have a problem with the h:messages tag. When an error occurs, e. g. an >> validation error of f:validateLongRange, because the user entered >> an illegal >> value (a value not contained in the range defined), the error summary is >> printed many times in the h:messages tag. I use the tag the following way: >> >> > showDetail="false" errorClass="error" fatalClass="error" /> >> >> >> When I explicitely add an error message for a specific component to the >> FacesContext, I haven't observed that behaviour - the error message is >> printed only one time. >> >> >> Regards, >> >> Matthias >> > > >