Does this actually work properly? I tried with 5.0.10 and 5.0.11-
SNAPSHOT.
A component like this:
<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>
will render the <html> tags (outside the <t:container>) every time the
component is used (in another component, in my case). I checked in
jumpstart 3.3.3 as well, and it has the same problem (see
BasicCustomComponent).
BTW, I would also love to know how to do informal parameters (as you
can see from my example).
J
On Feb 29, 2008, at 9:10 AM, Christian Koeberl wrote:
Jesper Zedlitz <[EMAIL PROTECTED]> wrote
This is the T4 feature:
<
http://tapestry.apache.org/tapestry4/UsersGuide/template.html#template.directives.content
Is something like this possible with T5?
The replacement of $content$ is the t:container construct (see
https://issues.apache.org/jira/browse/TAPESTRY-1469).
So, you could write:
<html>
<head>
<title>This is a test</title>
</head>
<body>
<t:container xmlns:t=
"http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<table t:id="testGrid">
</table>
</t:container>
</body>
</html>
T5 only renders the contents in the container, the stuff around is
ignored
(works since 5.0.6).
There is no real replacement of $remove$ but there are some options:
- use t:block around content to be removed
- write a custom component Remove which returns false in
beginRender. You
could use it like: <tr t:type="Remove">....</tr>. Maybe Howard will
write
some kind of stuff (or take your comonent if you add it to a JIRA).
--
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]