A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
HTML in FacesMessage?
Joined: Aug 25, 2005
Oct 11, 2006 23:36:00
I would like to include html links within the error messages displayed on my jsf page.
FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, "This is <a href='www.google.com.au'>test</a>",null); FacesContext.getCurrentInstance().getContext().addMessage(null,facesMessage);
But h:message tag doesn't seem to allow you to escape HTML.
Just wondering whether any workaround is available for this issue?
Any tip on this would be much appreciated.
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Joined: Oct 08, 2006
Oct 11, 2006 23:55:00
You despitely cannot. Use h
utputText or write a new component based on
[ October 11, 2006: Message edited by: Bauke Scholtz ]
I agree. Here's the link:
subject: HTML in FacesMessage?
Form Level Error Messages In JSF
How can I optimize this for JSF?
question on datetime converter and validation of a datetime field
Displaying FacesMessage when a RemoteException or SOAPException occurs
Newbie question on resubmit of page not executing bean
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014