You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Francois Armand <fa...@linagora.com> on 2008/08/18 09:06:28 UTC

Re: T5 - Include HTML in Message Catalogs

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