You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Andreas Andreou (JIRA)" <ji...@apache.org> on 2009/09/26 13:53:15 UTC

[jira] Moved: (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 ]

Andreas Andreou moved TAPESTRY-2753 to TAP5-858:
------------------------------------------------

        Key: TAP5-858  (was: TAPESTRY-2753)
    Project: Tapestry 5  (was: Tapestry)

> 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.
-
You can reply to this email to add a comment to the issue online.