Tapestry <maillist <at> tapestryforums.com> writes:
> I couldn't produce the exact same HTML output with Tapestry.
> Using the <at> Shell component I can set only the doctype but not the XML
> prolog!
Write your own Shell component. It's simple:
XMLShell.html:
<?xml version="1.0" encoding="UTF-8"?>
<span jwcid="shell">
<span jwcid="body"/>
</span>
XMLShell.jwc:
<component-specification>
<parameter name="title"/>
<component id="shell" type="Shell">
<binding name="title" value="title"/>
</component>
<component id="body" type="RenderBody"/>
</component-specification>
> Moreover Tapestry adds additional newline before the doctype:
My test shows that it doesn't add newlines (at least in beta 9).
> And how do I set the attributes on the html tag?
> I need this attributes:
> xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"
Then your XMLShell component can't just include a Shell. Instead,
you may have to put the <html ...> tag into XMLShell.html.
> What is the best solution? Do I need to write my own <at> Shell
> implementation? And if so, why is it not configurable?
Because Howard is not being paid to do this? :-) You can contribute
your code and/or log a feature request at
http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10573
--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]