LocalizableError does not render

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

LocalizableError does not render


I have a property in the resource bundle that contains an HTML link, something like

foo.bar=<a href="/Home.action">Please click here to try again</a>

Upon certain validation error I add it to ValidationErrors:

ValidationError e = new LocalizableError("foo.bar");
errors.add("someFiled", e);

I expected a n HTML link to be rendered but instead nothing is rendered. BTW, I added a debug statement
logger.debug("Adding error: " + e.getMessage(getContext().getRequest().getLocale()));
and it logs the property text "<a href="/Home.action">Please click here to try again</a>"

Am I wrong to expect a link to be rendered? If not, what am I doing wrong?


Aaron Stromas

Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
Stripes-users mailing list
[hidden email]