Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.4
-
None
Description
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