Phase-listeners shouldn't have to do anything with this. I don't recall to have seen that behaviour with messages in any case.
Can you try out the MyFaces examples and see if you can reproduce the problem there, eventually with a slight change to one of the examples? If yes, open a jira issue and tell us your steps to reproduce the issue. regards, Martin On 1/3/06, Rick Gruber-Riemer <[EMAIL PROTECTED]> wrote: > I think to remember that you have to look out for phaselisteners, which > might be registered two times ... > 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: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] 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: > >> > >> <h:messages layout="table" globalOnly="false" showSummary="true" > >> 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 > >> > >> > > > > > > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces

