escape="false" in <p:messages/>

UI Components for JSF
Post Reply
varunagrawal
Posts: 36
Joined: 12 Aug 2010, 15:49

18 Jul 2011, 16:34

As I upgraded to primefaces 3.1 M2 , I see that all the message in <p:messages/> show up with the escape and html code.
Is there any way I can make escape to false in <p:messages>

For example , after upgrade I see the following message with html code..: Sorry ! We are not able to register you at this time.<p>Please make sure you enter the same details that are registered with us.</p>If you see this message multiple times , please call lease office to update your details.</p>

thanks
Varun Agrawal

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

18 Jul 2011, 16:40

For security purposes, escape is enabled by default and no plans yet to make an attribute like escape.

varunagrawal
Posts: 36
Joined: 12 Aug 2010, 15:49

18 Jul 2011, 16:45

Ok...Is there any way you can help me on the below.

http://primefaces.prime.com.tr/forum/vi ... 095#p41095

thanks

murli.p.israni
Posts: 31
Joined: 15 Oct 2011, 14:12
Location: Mumbai, India

15 Oct 2011, 14:15

Can you please help, as the Error/Info messages needs the escape (For readability reasoning).
Thanks,
Thanks,
Murli Israni

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

15 Oct 2011, 15:07

There are three options to get this fixed
- change the source code yourself (not that difficult)
- file an issue, gather enough votes so it gets on the priority list
- buy commercial support and get it fixed tat way

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

18 Dec 2011, 11:52

- buy commercial support and get it fixed tat way
That what I suggest ;)

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

18 Dec 2011, 12:31

some advertising:
I implemented this in http://code.google.com/p/primefaces-extensions/ because i needed it in a project.
Currently you need to build it from source but we will also a provide a release early next year.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

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

19 Dec 2011, 11:03

PrimeFaces Extensions has "escaped" message(s) and growl. Other feature we have is an ability to set a target with TargetableFacesMessage http://code.google.com/p/primefaces-ext ... ssage.java. You can create a message for message(s) only or growl only or for both. It' useful if you have message(s) as well as growl on the page.
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:

19 Dec 2011, 11:12

Feel free to create an enhancement request, it is one line of code change.

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

19 Dec 2011, 14:13

By the way, escaping and targetable FacesMessage are not only two features we have. Another feature is e.g. range (severity) of accepted notifications. There are "minLevel" / "maxLevel" attributes community asked a long time ago for.

Code: Select all

<pe:messages id="messages" minLevel="warn" maxLevel="error" escape="false"/>
Extended message(s) / growl are a quite powerful components.
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 12 guests