You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Ulrich Stärk (JIRA)" <ji...@apache.org> on 2011/02/17 12:53:24 UTC

[jira] Closed: (TAP5-858) Execution de code dans un CDATA

     [ https://issues.apache.org/jira/browse/TAP5-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ulrich Stärk closed TAP5-858.
-----------------------------

    Resolution: Invalid

This isn't a bug but something to be answered on the user mailing list.

> Execution de code dans un CDATA
> -------------------------------
>
>                 Key: TAP5-858
>                 URL: https://issues.apache.org/jira/browse/TAP5-858
>             Project: Tapestry 5
>          Issue Type: Bug
>            Reporter: Hyunekel
>
> I try to generate a RSS feed but i got a problem with CDATA blocks. In fact, in my content i got a CDATA block and inside i want to execute dynamic code:
> 		<![CDATA[<html><head><style>body {font-size: 1.5em;}</style></head><body>		
> 			<div t:type="loop" source="article.sections" value="section">
> 				<t:if test="section.medias">
> 					<div t:type="loop" source="section.medias" value="media">
> 						<img src="data:image/${media.format};base64,${media.image}" />
> 					</div>
> 				</t:if>
> 				${section.subtitle}
> 				${section.question}
> 				${section.text}
> 				${section.signature}
> 			</div>
> 		</body></html>]]>
> In the java page if i use the meta @Meta("tapestry.response-content-type=text/xml") the final result take a real CDATA block but the dynamic code is not interpreted.
>  If i change the media, the code is execute but the CDATA tag "<" and ">" are replace by "& lt;" and my client don't support this format.
> How can i got a real CDATA block with dynamic code inside ?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira