Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Add an escape attribute to h:messages and h:message like in h:outputText #634

Closed
glassfishrobot opened this issue Sep 22, 2009 · 19 comments
Closed

Comments

@glassfishrobot
Copy link

I want to output an HTML link as part of my error message, but can't because the
HTML is escaped by h:messages. I searched Google for a workaround and found
many people have the same problem. There have even been tickets created against
JSF RI and MyFaces years ago.

https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=746
http://issues.apache.org/jira/browse/MYFACES-155

Environment

Operating System: All
Platform: All

Affected Versions

[2.0]

@glassfishrobot
Copy link
Author

Reported by rdelaplante

@glassfishrobot
Copy link
Author

@edburns said:
Move to unscheduled target milestone

@glassfishrobot
Copy link
Author

@edburns said:
Prepare to delete api subcomponent

@glassfishrobot
Copy link
Author

rogerk said:
Target 2.0 Rev A

@glassfishrobot
Copy link
Author

@edburns said:
cat2

@glassfishrobot
Copy link
Author

@edburns said:
rk

@glassfishrobot
Copy link
Author

@edburns said:
These are targeted at 2.1.

@glassfishrobot
Copy link
Author

sheetalv said:
triage

@glassfishrobot
Copy link
Author

@edburns said:
rogerk

@glassfishrobot
Copy link
Author

rogerk said:
triage

1 similar comment
@glassfishrobot
Copy link
Author

rogerk said:
triage

@glassfishrobot
Copy link
Author

kellerapps said:
I understand the use case. I'm not convinced HTML is the best way to express this sort of thing. Maybe Message should be enriched to express link & emphasis.

@glassfishrobot
Copy link
Author

bleathem said:
RichFaces supports this attribute with it's rich:message component (see: http://docs.jboss.org/richfaces/latest_4_X/vdldoc/rich/message.html)

Primefaces also supports this attirbute in it's message tag:
http://blog.primefaces.org/?p=1894

It seems to me it's something the community is asking for, and should be rolled into the spec.

@glassfishrobot
Copy link
Author

cagatay_civici said:
I agree that this should be in spec, I've seen various posts in PrimeFaces forum and stackoverflow from users who are looking for this.

@glassfishrobot
Copy link
Author

rdelaplante said:
This isn't just for putting links in error messages, it can also be useful for rich error messages including bold and italic of some words.

@glassfishrobot
Copy link
Author

rdelaplante said:
This feature is implemented in OmniFaces:

http://showcase.omnifaces.org/components/messages

@glassfishrobot
Copy link
Author

@edburns said:
Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

@glassfishrobot
Copy link
Author

This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-634

@glassfishrobot
Copy link
Author

Closing this as this issue is migrated to jakartaee/faces#634

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant