You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Ted Steen <te...@gmail.com> on 2007/02/22 14:26:37 UTC

T5: Any component renders body outside the element

I have a fieldset component that looks like this.

<fieldset t:type="Any"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
  <span t:type="If" test="title">
    <legend>${title}</legend>
  </span>
  <t:body />
</fieldset>

I expect that the content of the body would render inside the
<fieldset> but it doesnt.
what I get is this,

<fieldset>
  <legend>This is a fieldset</title>
</fieldset>
Here goes the body of the fieldset component?!

-- 
/ted

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


Re: T5: Any component renders body outside the element

Posted by Ted Steen <te...@gmail.com>.
hehe, you are to fast for me!
some people need to eat..

2007/2/22, Howard Lewis Ship <hl...@gmail.com>:
> I have a fix and am updating JIRA now.
>
> On 2/22/07, Howard Lewis Ship <hl...@gmail.com> wrote:
> > I've reproduced this and am tracking it down. Could you add a bug to JIRA?
> >
> > On 2/22/07, Ted Steen <te...@gmail.com> wrote:
> > > The reason I use the Any component for the fieldset element is because
> > > I have some attributes (not shown in my example) that need to get
> > > their value from prop-expressions.
> > >
> > > As I understand, that is the only way for me to let
> > > "non-component-elements" get their attribute values from
> > > prop-expressions.
> > >
> > > My suggestion would be to let expansions occur not only in ordinary
> > > template text, but inside attributes, and inside CDATA sections too.
> > > Its either that or use the Any component, right?
> > >
> > >
> > > 2007/2/22, Ted Steen <te...@gmail.com>:
> > > > I have a fieldset component that looks like this.
> > > >
> > > > <fieldset t:type="Any"
> > > > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> > > >   <span t:type="If" test="title">
> > > >     <legend>${title}</legend>
> > > >   </span>
> > > >   <t:body />
> > > > </fieldset>
> > > >
> > > > I expect that the content of the body would render inside the
> > > > <fieldset> but it doesnt.
> > > > what I get is this,
> > > >
> > > > <fieldset>
> > > >   <legend>This is a fieldset</title>
> > > > </fieldset>
> > > > Here goes the body of the fieldset component?!
> > > >
> > > > --
> > > > /ted
> > > >
> > >
> > >
> > > --
> > > /ted
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: dev-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
> >
>
>
> --
> 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: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>


-- 
/ted

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


Re: T5: Any component renders body outside the element

Posted by Howard Lewis Ship <hl...@gmail.com>.
I have a fix and am updating JIRA now.

On 2/22/07, Howard Lewis Ship <hl...@gmail.com> wrote:
> I've reproduced this and am tracking it down. Could you add a bug to JIRA?
>
> On 2/22/07, Ted Steen <te...@gmail.com> wrote:
> > The reason I use the Any component for the fieldset element is because
> > I have some attributes (not shown in my example) that need to get
> > their value from prop-expressions.
> >
> > As I understand, that is the only way for me to let
> > "non-component-elements" get their attribute values from
> > prop-expressions.
> >
> > My suggestion would be to let expansions occur not only in ordinary
> > template text, but inside attributes, and inside CDATA sections too.
> > Its either that or use the Any component, right?
> >
> >
> > 2007/2/22, Ted Steen <te...@gmail.com>:
> > > I have a fieldset component that looks like this.
> > >
> > > <fieldset t:type="Any"
> > > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> > >   <span t:type="If" test="title">
> > >     <legend>${title}</legend>
> > >   </span>
> > >   <t:body />
> > > </fieldset>
> > >
> > > I expect that the content of the body would render inside the
> > > <fieldset> but it doesnt.
> > > what I get is this,
> > >
> > > <fieldset>
> > >   <legend>This is a fieldset</title>
> > > </fieldset>
> > > Here goes the body of the fieldset component?!
> > >
> > > --
> > > /ted
> > >
> >
> >
> > --
> > /ted
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-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
>


-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: T5: Any component renders body outside the element

Posted by Howard Lewis Ship <hl...@gmail.com>.
I've reproduced this and am tracking it down. Could you add a bug to JIRA?

On 2/22/07, Ted Steen <te...@gmail.com> wrote:
> The reason I use the Any component for the fieldset element is because
> I have some attributes (not shown in my example) that need to get
> their value from prop-expressions.
>
> As I understand, that is the only way for me to let
> "non-component-elements" get their attribute values from
> prop-expressions.
>
> My suggestion would be to let expansions occur not only in ordinary
> template text, but inside attributes, and inside CDATA sections too.
> Its either that or use the Any component, right?
>
>
> 2007/2/22, Ted Steen <te...@gmail.com>:
> > I have a fieldset component that looks like this.
> >
> > <fieldset t:type="Any"
> > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> >   <span t:type="If" test="title">
> >     <legend>${title}</legend>
> >   </span>
> >   <t:body />
> > </fieldset>
> >
> > I expect that the content of the body would render inside the
> > <fieldset> but it doesnt.
> > what I get is this,
> >
> > <fieldset>
> >   <legend>This is a fieldset</title>
> > </fieldset>
> > Here goes the body of the fieldset component?!
> >
> > --
> > /ted
> >
>
>
> --
> /ted
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: T5: Any component renders body outside the element

Posted by Ted Steen <te...@gmail.com>.
The reason I use the Any component for the fieldset element is because
I have some attributes (not shown in my example) that need to get
their value from prop-expressions.

As I understand, that is the only way for me to let
"non-component-elements" get their attribute values from
prop-expressions.

My suggestion would be to let expansions occur not only in ordinary
template text, but inside attributes, and inside CDATA sections too.
Its either that or use the Any component, right?


2007/2/22, Ted Steen <te...@gmail.com>:
> I have a fieldset component that looks like this.
>
> <fieldset t:type="Any"
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>   <span t:type="If" test="title">
>     <legend>${title}</legend>
>   </span>
>   <t:body />
> </fieldset>
>
> I expect that the content of the body would render inside the
> <fieldset> but it doesnt.
> what I get is this,
>
> <fieldset>
>   <legend>This is a fieldset</title>
> </fieldset>
> Here goes the body of the fieldset component?!
>
> --
> /ted
>


-- 
/ted

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