You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/05/28 16:15:02 UTC

[jira] [Commented] (TAP5-2200) Generating XML from pages and templates is not possible anymore

    [ https://issues.apache.org/jira/browse/TAP5-2200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14011128#comment-14011128 ] 

ASF subversion and git services commented on TAP5-2200:
-------------------------------------------------------

Commit ff2fcd8a70aea2d10d1d9742f196acc25f24fb7f in tapestry-5's branch refs/heads/master from [~thiagohp]
[ https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;h=ff2fcd8 ]

Closes TAP5-2200 : Generating XML from pages and templates is not possible anymore


> Generating XML from pages and templates is not possible anymore
> ---------------------------------------------------------------
>
>                 Key: TAP5-2200
>                 URL: https://issues.apache.org/jira/browse/TAP5-2200
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.4
>            Reporter: Denis Delangle
>            Assignee: Thiago H. de Paula Figueiredo
>              Labels: month-of-tapestry, patch, regression
>         Attachments: tap5-2200.patch
>
>
> With Tapestry 5.4-alpha-22, I can't produce XML content with pages anymore. 
> Given the page 
> @ContentType("text/xml")
> public class ModuleInfo {
> ...
> }
> And the given template
> <info xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> 	<moduleName>${context.moduleName}</moduleName>
> 	<serverName>${context.serverName}</serverName>
> 	<serverAddress>${context.serverAddress}</serverAddress>
> 	<type>${context.type}</type>
> 	<client>${context.client}</client>
> 	<package>
> 		<t:loop source="packageInfo" value="currentEntry" >
> 			<item name="${currentEntry.key}">${currentEntry.value}</item>
> 		</t:loop>
> 	</package>
> </info>
> I get the error message : 
>  "The root element of the rendered document was <info>, not <html>. A root element of <html> is needed when linking JavaScript and stylesheet resources."
> My code was running fine with Tapestry 5.4-alpha-11



--
This message was sent by Atlassian JIRA
(v6.2#6252)