You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Arming, Sebastian" <Se...@oeaw.ac.at> on 2010/10/19 17:11:49 UTC

write raw attributes

Hi,

is there a convenient way to output unescaped attributes - i.e. other than writer.writeRaw('<e a="&quot;"/>')?
Specifically I need entities in a href.

Thanks in Advance,
Sebastian Arming


Re: write raw attributes

Posted by Josh Canfield <jo...@gmail.com>.
Taking a look at how attributes are rendered (
org.apache.tapestry5.dom.Attribute) I don't see anything that allows
you to turn on and off entity encoding.

It uses the model to encode the quoted attribute, so you might be able
to create a new markup model...

Josh

On Tue, Oct 19, 2010 at 8:55 AM, Arming, Sebastian
<Se...@oeaw.ac.at> wrote:
>> From: Jim O'Callaghan [mailto:jc1000001@yahoo.co.uk]
>> Subject: RE: write raw attributes
>>
>> Is something like:
>> <t:OutputRaw value="entity.property"/>
>>
>> ... of any use?  Do you mean in .tml?
>
> Unfortunately no, because XML-Attributes can't contain XML-Elements, i.e.:
> <a href='<t:outputraw value="foo"/>' />
> won't work in a .tml.
>
> Thanks anyway!
>
> To clarify myself: I meant XML-Entities.
>

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


RE: write raw attributes

Posted by "Arming, Sebastian" <Se...@oeaw.ac.at>.
> From: Jim O'Callaghan [mailto:jc1000001@yahoo.co.uk]
> Subject: RE: write raw attributes
> 
> Is something like:
> <t:OutputRaw value="entity.property"/>
> 
> ... of any use?  Do you mean in .tml?

Unfortunately no, because XML-Attributes can't contain XML-Elements, i.e.:
<a href='<t:outputraw value="foo"/>' />
won't work in a .tml.

Thanks anyway!

To clarify myself: I meant XML-Entities.

RE: write raw attributes

Posted by Jim O'Callaghan <jc...@yahoo.co.uk>.
Is something like:

<t:OutputRaw value="entity.property"/>

... of any use?  Do you mean in .tml?

Regards,
Jim.

-----Original Message-----
From: Arming, Sebastian [mailto:Sebastian.Arming@oeaw.ac.at] 
Sent: 19 October 2010 16:12
To: users@tapestry
Subject: write raw attributes

Hi,

is there a convenient way to output unescaped attributes - i.e. other than writer.writeRaw('<e a="&quot;"/>')?
Specifically I need entities in a href.

Thanks in Advance,
Sebastian Arming



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