You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by hemen <he...@googlemail.com> on 2009/01/06 11:28:19 UTC

Is it possible to use Property Files with HTML tags in Tapestry 5.0

I am using example.properties file in which, the following property is using

Property1=<p>hi this is demo property file.. please refer <t:pagelink
t:page="about">Home</t:pagelink></p>

In example.tml file----
when i print it as 

${Property1}

It will print the "<p>hi this is demo property file.. please refer
<t:pagelink t:page="about">Home</t:pagelink></p>". --- As whole String with
HTML tags

HTML parsing is not done....

Please suggest me....

Thanks,
Hemen
-- 
View this message in context: http://www.nabble.com/Is-it-possible-to-use-Property-Files-with-HTML-tags-in-Tapestry-5.0-tp21308001p21308001.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Is it possible to use Property Files with HTML tags in Tapestry 5.0

Posted by hemen <he...@googlemail.com>.
Thanks Armand...

      :jumping:
      Its working very fine...
       With : <t:outputraw t:value = "${Property1}"/>
    

Hemen.. 



Francois Armand wrote:
> 
> hemen wrote:
>> ....
>> It will print the "<p>hi this is demo property file.. please refer
>> <t:pagelink t:page="about">Home</t:pagelink></p>". --- As whole String
>> with
>> HTML tags
>>
>> HTML parsing is not done....
>>   
> In fact, Tapestry escaped the armful characters to avoid any damaging 
> side effects. If you actually want to output your string as it is, you 
> will to use  the outputraw component:
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html
> 
> -- 
> Francois Armand
> Etudes & Développements J2EE
> Groupe Linagora - http://www.linagora.com
> Tél.: +33 (0)1 58 18 68 28
> -----------
> http://fanf42.blogspot.com
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Is-it-possible-to-use-Property-Files-with-HTML-tags-in-Tapestry-5.0-tp21308001p21308555.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Is it possible to use Property Files with HTML tags in Tapestry 5.0

Posted by Francois Armand <fa...@linagora.com>.
hemen wrote:
> ....
> It will print the "<p>hi this is demo property file.. please refer
> <t:pagelink t:page="about">Home</t:pagelink></p>". --- As whole String with
> HTML tags
>
> HTML parsing is not done....
>   
In fact, Tapestry escaped the armful characters to avoid any damaging 
side effects. If you actually want to output your string as it is, you 
will to use  the outputraw component:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html

-- 
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
http://fanf42.blogspot.com
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