Robert Zeigler wrote:
> "the code works": Nope, it doesn't.

Now, it's getting interesting! This is what I get, when I try your code:
<html>
<head>
<link type="text/css" rel="stylesheet" 
href="/assets/tapestry/default.css">
</link>
<title>If t:container replaces $content$, this shouldn't render</title>
</head>
<body> This is the only thing that should render if t:container replaces 
$content$. </body>
</html>

Very strange, isn't it?

When I have this Start.tml:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
    <head>
        <title>myapp Start Page</title>
    </head>
    <body>
        <t:SampleComponent />
    </body>
</html>

Then I get:
<html>
<head>
<link type="text/css" rel="stylesheet" 
href="/assets/tapestry/default.css">
</link>
<title>myapp Start Page</title>
</head>
<body> This is the only thing that should render if t:container replaces 
$content$. </body>
</html>

Looks quite good to me.

I use Tapestry 5.0.10 on Windows JDK 5 with Jetty 5.1.14, I started with a 
clean archetype generated app and added the SampleComonent and changed 
Start.tml.

-- 
Chris

Reply via email to