TestPage.tml:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<t:SampleComponent/>
</html>
SampleComponent.tml:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<title>If t:container replaces $content$, this shouldn't render</title>
</head>
<body>
<t:container>
This is the only thing that should render if t:container replaces
$content$.
</t:container>
</body>
</html>
Rendered Output (whitespace added back in for clarity):
<html>
<head>
<link href="assets/tapestry/default.css" rel="stylesheet"
type="text/css">
</head>
<html>
<head>
<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>
</html>
"the code works": Nope, it doesn't.
Robert
On Mar 7, 2008, at 3/711:09 AM , Christian Köberl wrote:
Robert Zeigler wrote:
I think you're misunderstanding the point of t:container?
As far as I understand the comment on the JIRA
(https://issues.apache.org/jira/browse/TAPESTRY-1469?focusedCommentId=12508885
#action_12508885)
it should be a replacement of $content$.
And, the code works - so even if it was not intended to replace
$content$
why not make t:container replace it?
--
Chris
--
View this message in context:
http://www.nabble.com/Writing-an-FAQ-for-Tapestry-5-tp15719185p15901109.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]