> will render the <html> tags (outside the <t:container>) every time the 
> component is used (in another component, in my case).
I just tried this out with 5.0.10 - with my test it doesn't render the 
<html> tags.

> I checked in jumpstart 3.3.3 as well, and it has the same problem (see 
BasicCustomComponent).
I don't understand what this has to do with BasicCustomComponent!?

Here's my code which doesn't render the tags:
TestComponent.tml (in components):
<html>
<t:container xmlns:t=
"http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
     <a t:type="PageLink" page="${page}" href="#" accesskey="${accessKey}" 
title="${title}" class="${cssClass}">${page}</a>
</t:container>
</html>

TestComponent.java (in components):
public class TestComponent
{
        @Parameter
        private String page;
        @Parameter
        private String accessKey; 
        @Parameter
        private String title;
        @Parameter
        private String cssClass;
        // getters
}

Start.tml (in pages):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; 
    xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
    <head> 
        <title>Test</title>
    </head>
    <body>
        <h1>Test</h1>
        <a t:id="testComponent"></a>
        </body>
</html>

Start.java (in pages):
public class Start
{
        @Component(parameters = {"page=literal:Start", 
"accessKey=literal:a", "title=literal:Hello", "cssClass=literal:x"})
        private TestComponent testComponent;
}

Produces this output:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<HTML xmlns="http://www.w3.org/1999/xhtml";>
<head>
  <link href="/assets/tapestry/default.css" rel="stylesheet" 
type="text/css">
<title>
Test
</title>
</head>
<body>
<h1>
Test
</h1>
<a accesskey="a" class="x" href="/start" id="pagelink" title="Hello">
Start
</a>
</body>
</html>

-- 
Chris

Reply via email to