You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Dude.Checkitout" <du...@gmail.com> on 2008/10/15 01:05:21 UTC
shows only one top level element
According to the http://tapestry.apache.org/tapestry5/guide/templates.html
page <t:container> element is used for displaying multiple top level
components.
I tried the following code in my tml file:
<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<div>First Div!</div>
<div>Second Div!</div>
<div>Third Div!</div>
</t:container>
And when I run it, tapestry displays only the Third Div! (last first level
element).
Am I missing something?
--
View this message in context: http://n2.nabble.com/%3Ct%3Acontainer%3E-shows-only-one-top-level-element-tp1334818p1334818.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: shows only one top level element
Posted by Howard Lewis Ship <hl...@gmail.com>.
It's meant for components, not pages. It should probably complain
louder that the output document has multiple top level elements.
On Tue, Oct 14, 2008 at 4:05 PM, Dude.Checkitout
<du...@gmail.com> wrote:
>
> According to the http://tapestry.apache.org/tapestry5/guide/templates.html
> page <t:container> element is used for displaying multiple top level
> components.
>
> I tried the following code in my tml file:
>
> <t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> <div>First Div!</div>
> <div>Second Div!</div>
> <div>Third Div!</div>
> </t:container>
>
> And when I run it, tapestry displays only the Third Div! (last first level
> element).
>
> Am I missing something?
> --
> View this message in context: http://n2.nabble.com/%3Ct%3Acontainer%3E-shows-only-one-top-level-element-tp1334818p1334818.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org