You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Allen Guo <el...@gmail.com> on 2007/06/08 19:40:16 UTC

About component 'loop' usage in T5.0.4

Hi All,

If I use loop component in html template like this
<t:loop source="sorts" value="sort">
<a t:type="actionlink" t:id="select" context="_sort.Id">${_sort.name}</a>
</t:loop>

I have to define the property in corresponding page class like this
public class SortList {
.....
private Sort sort;
private List sorts;
public Sort getSort() {
return sort;
}

public void setSort(Sort sort) {
this.sort = sort;
}
.....
}
It seems that the 'sort' must be defined in page class. It's so terrible.:(
If I can remove the property 'sort' from page class like T4.1, it will
be great.


Thanks
Allen Guo

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


Re: About component 'loop' usage in T5.0.4

Posted by Massimo Lusetti <ml...@gmail.com>.
On 6/11/07, Howard Lewis Ship <hl...@gmail.com> wrote:

> "I really like this Ferarri, but I don't like to drive stick.  What do I do?"

Very nice comparison! And it fits well...

-- 
Massimo
http://meridio.blogspot.com

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


Re: About component 'loop' usage in T5.0.4

Posted by Daniel Jue <te...@gmail.com>.
Wait for the Tapestry-PaddleShifter library?

I think the politeness is just lost in translation.  I can relate with
my in-laws. :-)

On 6/11/07, Howard Lewis Ship <hl...@gmail.com> wrote:
> "I really like this Ferarri, but I don't like to drive stick.  What do I do?"
>
> On 6/11/07, Howard Lewis Ship <hl...@gmail.com> wrote:
> > Stick with T4.1?
> >
> > On 6/9/07, Allen Guo <el...@gmail.com> wrote:
> > > Can anybody give some suggestion?
> > >
> > > Allen Guo 写道:
> > > > Hi All,
> > > >
> > > > If I use loop component in html template like this
> > > > <t:loop source="sorts" value="sort">
> > > > <a t:type="actionlink" t:id="select" context="_sort.Id">${_sort.name}</a>
> > > > </t:loop>
> > > >
> > > > I have to define the property in corresponding page class like this
> > > > public class SortList {
> > > > .....
> > > > private Sort sort;
> > > > private List sorts;
> > > > public Sort getSort() {
> > > > return sort;
> > > > }
> > > >
> > > > public void setSort(Sort sort) {
> > > > this.sort = sort;
> > > > }
> > > > .....
> > > > }
> > > > It seems that the 'sort' must be defined in page class. It's so terrible.:(
> > > > If I can remove the property 'sort' from page class like T4.1, it will
> > > > be great.
> > > >
> > > >
> > > > Thanks
> > > > Allen Guo
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
>
>
> --
> 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
>
>

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


Re: About component 'loop' usage in T5.0.4

Posted by Howard Lewis Ship <hl...@gmail.com>.
"I really like this Ferarri, but I don't like to drive stick.  What do I do?"

On 6/11/07, Howard Lewis Ship <hl...@gmail.com> wrote:
> Stick with T4.1?
>
> On 6/9/07, Allen Guo <el...@gmail.com> wrote:
> > Can anybody give some suggestion?
> >
> > Allen Guo 写道:
> > > Hi All,
> > >
> > > If I use loop component in html template like this
> > > <t:loop source="sorts" value="sort">
> > > <a t:type="actionlink" t:id="select" context="_sort.Id">${_sort.name}</a>
> > > </t:loop>
> > >
> > > I have to define the property in corresponding page class like this
> > > public class SortList {
> > > .....
> > > private Sort sort;
> > > private List sorts;
> > > public Sort getSort() {
> > > return sort;
> > > }
> > >
> > > public void setSort(Sort sort) {
> > > this.sort = sort;
> > > }
> > > .....
> > > }
> > > It seems that the 'sort' must be defined in page class. It's so terrible.:(
> > > If I can remove the property 'sort' from page class like T4.1, it will
> > > be great.
> > >
> > >
> > > Thanks
> > > Allen Guo
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>


-- 
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


Re: About component 'loop' usage in T5.0.4

Posted by Howard Lewis Ship <hl...@gmail.com>.
Stick with T4.1?

On 6/9/07, Allen Guo <el...@gmail.com> wrote:
> Can anybody give some suggestion?
>
> Allen Guo 写道:
> > Hi All,
> >
> > If I use loop component in html template like this
> > <t:loop source="sorts" value="sort">
> > <a t:type="actionlink" t:id="select" context="_sort.Id">${_sort.name}</a>
> > </t:loop>
> >
> > I have to define the property in corresponding page class like this
> > public class SortList {
> > .....
> > private Sort sort;
> > private List sorts;
> > public Sort getSort() {
> > return sort;
> > }
> >
> > public void setSort(Sort sort) {
> > this.sort = sort;
> > }
> > .....
> > }
> > It seems that the 'sort' must be defined in page class. It's so terrible.:(
> > If I can remove the property 'sort' from page class like T4.1, it will
> > be great.
> >
> >
> > Thanks
> > Allen Guo
> >
> >
>
>
> ---------------------------------------------------------------------
> 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


Re: About component 'loop' usage in T5.0.4

Posted by Allen Guo <el...@gmail.com>.
Can anybody give some suggestion?

Allen Guo 写道:
> Hi All,
>
> If I use loop component in html template like this
> <t:loop source="sorts" value="sort">
> <a t:type="actionlink" t:id="select" context="_sort.Id">${_sort.name}</a>
> </t:loop>
>
> I have to define the property in corresponding page class like this
> public class SortList {
> .....
> private Sort sort;
> private List sorts;
> public Sort getSort() {
> return sort;
> }
>
> public void setSort(Sort sort) {
> this.sort = sort;
> }
> .....
> }
> It seems that the 'sort' must be defined in page class. It's so terrible.:(
> If I can remove the property 'sort' from page class like T4.1, it will
> be great.
>
>
> Thanks
> Allen Guo
>
>   


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