You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by JustLikeKat <Ka...@gamesys.co.uk> on 2008/07/07 18:16:57 UTC
T5 - Include HTML in Message Catalogs
Please could someone tell me how to include HTML in the message properties,
so that it is actually used and not just converted to text.
E.g.
my.error.message=Sorry, that is wrong. Please go to /somewhere This Page .
So that the link actually appears in the error message.
I cannot just split the message up as 2 separate messages with the html bit
being inserted directly into the page, as the message is being dynamically
added to the page in the case of errors in a form.
Cheers
--
View this message in context: http://www.nabble.com/T5---Include-HTML-in-Message-Catalogs-tp18320458p18320458.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: T5 - Include HTML in Message Catalogs
Posted by Francois Armand <fa...@linagora.com>.
JustLikeKat wrote:
> Please could someone tell me how to include HTML in the message properties,
> so that it is actually used and not just converted to text.
>
You can use the outpuraw component for that, see:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html
(in the java part, use the Message service to get your localized text,
and 'outputraw' the result in the tml)
You may also make your own binding, say "htmlmessage:" that does the job
for you. You can learn how to do that from here (for example, but
there's other tutos about this topic):
http://wiki.apache.org/tapestry/Tapestry5HowToAddMessageFormatBindingPrefix
--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org
FederID - http://www.federid.org/
Open Source identities management and federation
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org