Hello,

I also have this issue with 5.4 alpha 22. It is a regression I guess
as it was OK with alpha-11. I define a page like this :

@ContentType("text/xml")
public class ModuleInfo {
...

and have a template like

<info xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
   <moduleName>${context.moduleName}</moduleName>
...

And I get the same 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."

Did you find a way to make your RSS module run with the alpha-22 ?

Thanks a lot,

Denis



2013/9/28 Thiago H de Paula Figueiredo <[email protected]>:
> Hi!
>
> I'm writing a page to generate an RSS 2.0 document though MarkupWriter[1].
> Tapestry is then trying to add JavaScript to it anyway: "The root element of
> the rendered document was <rss>, not <html>. A root element of <html> is
> needed when linking JavaScript and stylesheet resources."
>
> Is this a bug? I think so, even being something of a corner case. Shouldn't
> Tapestry refrain from adding the core stack (or any CSS or JavaScript) for
> pages with content type different than text/html or application/xhtml+xml
> (XHTML)?
>
> [1] I do that to avoid needing to use some XML DOM implementation and then
> serialize it as a String to return a StreamResponse. Also to avoid an
> external dependency to an RSS package like Rome.
>
> --
> Thiago H. de Paula Figueiredo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to