You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dan Adams <da...@ifactory.com> on 2007/06/08 18:17:28 UTC

[T5] Avoiding an extra containing element

So if you have a template that is just:

<t:comp ... />
<t:comp ... />

this won't work because you need the "t" namespace obviously. So it
becomes something like this perhaps:

<div xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
  <t:comp ... />
  <t:comp ... />
</div>

which works fine but now you have an extra div your output just to put
in the namespace. Anyone know a good way around this like some element
that won't render? Something like this could be good (empty is a bad
name probably but you get the point):

<t:empty xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
  <t:comp ... />
  <t:comp ... />
</t:empty>


-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] Avoiding an extra containing element

Posted by Howard Lewis Ship <hl...@gmail.com>.
There's an outstanding JIRA issue on this subject; I want to introduce
a <t:container> element for this particular situation.

On 6/8/07, Dan Adams <da...@ifactory.com> wrote:
> So if you have a template that is just:
>
> <t:comp ... />
> <t:comp ... />
>
> this won't work because you need the "t" namespace obviously. So it
> becomes something like this perhaps:
>
> <div xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>   <t:comp ... />
>   <t:comp ... />
> </div>
>
> which works fine but now you have an extra div your output just to put
> in the namespace. Anyone know a good way around this like some element
> that won't render? Something like this could be good (empty is a bad
> name probably but you get the point):
>
> <t:empty xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>   <t:comp ... />
>   <t:comp ... />
> </t:empty>
>
>
> --
> Dan Adams
> Senior Software Engineer
> Interactive Factory
> 617.235.5857
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org