Messages with summary and detail (bug?)

UI Components for JSF
Post Reply
User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

18 Feb 2010, 12:59

Hi,

I've created messages without detail by

Code: Select all

new FacesMessage(severity, msg, null);
but p:messages shows both summary and detail. I have

Code: Select all

<p:messages showDetail="true" showSummary="true"/>
and I don't want to change some value to "false" because it should be controled by caller.

Is it a PrimeFaces issue or JSF default behavior?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Feb 2010, 14:50

How does h:messages behave when you replace p with h?

messages defaults to false for showDetail and true for showSummary. So the problem is displaying detail even it is null? What does it render?

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

18 Feb 2010, 15:27

Ok. It seems to be default JSF behavior. h:messages shows the same - detail and summary even the detail was set to null. Strange logic.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests