Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread Martino Piccinato
http://tapestry.apache.org/tapestry4.1/components/general/for.html

On 10/8/07, Ken nashua [EMAIL PROTECTED] wrote:

 I would like to do some iteration like a true for loop with front, back and 
 computable boundaries.

 Is there such a component?

 Best regards
 Ken in nashua
 _
 Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
 today.
 http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua

Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I 
cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

_
Peek-a-boo FREE Tricks  Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua

martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I 
cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua

I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index
%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I 
cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it 
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033

Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread andyhot

What's the problem with using two nested @For then?

P.S. Does the jsp example really do what you're describing?

Ken nashua wrote:

I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index

%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it 
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033
  


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread Robert Zeigler
http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html#subList 
(int,%20int)

http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/methods.html

span jwcid=@For source=ognl:myList.subList(start,end)  
value=ognl:currentObject

  trtd.../td/tr
/span


Robert


On Oct 8, 2007, at 10/810:22 AM , Ken nashua wrote:



martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page  
for a list==100.


If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a  
collection from 0..N.


I need a component with which I can manipulate the front end  
starting index and jump out break at a specified numeric index.


Example: I have a list of 100 . Now I want to render trtd/td/ 
tr and show 7 elements and iterate again to do the same until the  
list is exhausted. I cannot do this with FOR.


?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front,  
back and computable boundaries.


Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café.  
Stop by today!


Peek-a-boo FREE Tricks  Treats for You! Get 'em!

_
Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power.
http://club.live.com/star_shuffle.aspx? 
icid=starshuffle_wlmailtextlink_oct



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua

Thanks Bob but I need to span the whole list.

Thanks Andy but I how do I cause a for loop to iterate N iterations independent 
of any collection?

I guess I am looking for static iteration independent of any collection. I am 
inheriting from baseComponent so I am not inclined to do this as a pure java 
widget. I need to operate off the template.

Would @Deletagor be an option?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:34:04 -0400








I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index
%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I 
cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread Robert Zeigler
http://www.tapestrycomponents.org/Tassel/app?service=external/ 
ViewComponentsp=SLoop


Originally written for tapestry 3.x. Haven't tested it in 4.x, but it  
does what you're asking.


Cheers,

Robert

On Oct 8, 2007, at 10/811:05 AM , Ken nashua wrote:



Thanks Bob but I need to span the whole list.

Thanks Andy but I how do I cause a for loop to iterate N iterations  
independent of any collection?


I guess I am looking for static iteration independent of any  
collection. I am inheriting from baseComponent so I am not inclined  
to do this as a pure java widget. I need to operate off the template.


Would @Deletagor be an option?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:34:04 -0400








I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection
value=ognl:currentObject index=ognl:index
%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page  
for a list==100.


If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a  
collection from 0..N.


I need a component with which I can manipulate the front end  
starting index and jump out break at a specified numeric index.


Example: I have a list of 100 . Now I want to render trtd/td/ 
tr and show 7 elements and iterate again to do the same until the  
list is exhausted. I cannot do this with FOR.


?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front,  
back and computable boundaries.


Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café.  
Stop by today!


Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power. Play Now!


Windows Live Hotmail and Microsoft Office Outlook – together at  
last. Get it now!


_
Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power.
http://club.live.com/star_shuffle.aspx? 
icid=starshuffle_wlmailtextlink_oct



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread andyhot


Ken nashua wrote:

Thanks Bob but I need to span the whole list.

Thanks Andy but I how do I cause a for loop to iterate N iterations independent 
of any collection?
  

I'd use my own Iterator...
Having said that, I still dont get your exact use case - how would you 
do it in java (no web, no tapestry) ?

I guess I am looking for static iteration independent of any collection. I am 
inheriting from baseComponent so I am not inclined to do this as a pure java 
widget. I need to operate off the template.

Would @Deletagor be an option?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:34:04 -0400








I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index

%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
  


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread Martino Piccinato
In fact it seems to me you should solvee your problem with some easy
page method creating the list to be iterated by the for each time you
reload the page.

So you have your big list in one property and another method
(possibly reading other properties/parameters) will slice the big list
to provide for the actual list iterated by for (finally it's still a
list...). Don't mix the complexity of your controller/model with the
simplicity of tapestry components :-)


On 10/8/07, Ken nashua [EMAIL PROTECTED] wrote:

 Thanks Bob but I need to span the whole list.

 Thanks Andy but I how do I cause a for loop to iterate N iterations 
 independent of any collection?

 I guess I am looking for static iteration independent of any collection. I am 
 inheriting from baseComponent so I am not inclined to do this as a pure java 
 widget. I need to operate off the template.

 Would @Deletagor be an option?

 Best regards
 Ken in nashua

 From: [EMAIL PROTECTED]
 To: users@tapestry.apache.org
 Subject: RE: does tapestry 4.2 have an iterator component
 Date: Mon, 8 Oct 2007 11:34:04 -0400








 I can whip off a solution in JSP while I am typing...

 span jwcid=[EMAIL PROTECTED] source=ognl:collection
 value=ognl:currentObject index=ognl:index
 %

 for ( int i = 0; i  3; i++)
 spit out TRTD.../TD/TR
 %
 /span

 Why is it so hard to do such a fundamental thing in tapestry?

 Best regards
 Ken in nashua

 From: [EMAIL PROTECTED]
 To: users@tapestry.apache.org
 Subject: RE: does tapestry 4.2 have an iterator component
 Date: Mon, 8 Oct 2007 11:22:50 -0400








 martino I am already using the FOR component on my list.

 I have a select component that sets a tableSize at the top of page for a 
 list==100.

 If tableSize = 10, then I want to render 10 items within a TR/TR
 And continue until the list is exhausted.

 Then I will see 10 rows. Right?

 FOR does not permit this to happen. It is blind.

 Best regards
 Ken in nashua

 From: [EMAIL PROTECTED]
 To: users@tapestry.apache.org
 Subject: RE: does tapestry 4.2 have an iterator component
 Date: Mon, 8 Oct 2007 11:19:16 -0400








 Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
 0..N.

 I need a component with which I can manipulate the front end starting index 
 and jump out break at a specified numeric index.

 Example: I have a list of 100 . Now I want to render trtd/td/tr and 
 show 7 elements and iterate again to do the same until the list is exhausted. 
 I cannot do this with FOR.

 ?

 Best regards
 Ken in nashua

 From: [EMAIL PROTECTED]
 To: users@tapestry.apache.org
 Subject: does tapestry 4.2 have an iterator component
 Date: Mon, 8 Oct 2007 10:57:42 -0400








 I would like to do some iteration like a true for loop with front, back and 
 computable boundaries.

 Is there such a component?

 Best regards
 Ken in nashua
 Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
 today!

 Peek-a-boo FREE Tricks  Treats for You! Get 'em!

 Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
 challenge with star power. Play Now!

 Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
 now!

 _
 Climb to the top of the charts! Play Star Shuffle: the word scramble 
 challenge with star power.
 http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua

All I am looking for is a Loop component.

Tap-4.1.2 has none. 

Unless someone wants to point it out and skip all the heck.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:05:46 -0400








Thanks Bob but I need to span the whole list.

Thanks Andy but I how do I cause a for loop to iterate N iterations independent 
of any collection?

I guess I am looking for static iteration independent of any collection. I am 
inheriting from baseComponent so I am not inclined to do this as a pure java 
widget. I need to operate off the template.

Would @Deletagor be an option?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:34:04 -0400








I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index
%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I 
cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline

Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread andyhot

Ken, you're right - T4.1.2 doesn't have a Loop component
it has always had a @For component

Here's a way to turn For into Loop (adjust for  JDK1.5)

public class IntIterator implements Iterator{
private int _start, _end;
public IntIterator(int start, int end) {_start=start;_end=end;}
public boolean hasNext() {return _start_end;}
public Object next() {return _start++;}
public void remove(){}
}

span jwcid=@For source=ognl:new IntIterator(1,100) ...



Ken nashua wrote:

All I am looking for is a Loop component.

Tap-4.1.2 has none. 


Unless someone wants to point it out and skip all the heck.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:05:46 -0400








Thanks Bob but I need to span the whole list.

Thanks Andy but I how do I cause a for loop to iterate N iterations independent 
of any collection?

I guess I am looking for static iteration independent of any collection. I am 
inheriting from baseComponent so I am not inclined to do this as a pure java 
widget. I need to operate off the template.

Would @Deletagor be an option?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:34:04 -0400








I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index

%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline
  


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua

tassle component LOOP is for 3.0.

No indicator it is for T-4.1.2

Still blue in the face,.,.,.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:51:17 -0400








All I am looking for is a Loop component.

Tap-4.1.2 has none. 

Unless someone wants to point it out and skip all the heck.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:05:46 -0400








Thanks Bob but I need to span the whole list.

Thanks Andy but I how do I cause a for loop to iterate N iterations independent 
of any collection?

I guess I am looking for static iteration independent of any collection. I am 
inheriting from baseComponent so I am not inclined to do this as a pure java 
widget. I need to operate off the template.

Would @Deletagor be an option?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:34:04 -0400








I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index
%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I 
cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua

Andy, I will give that IntIterator a try... but I have a parameter in OGNL 
called tableSize. How do I pass this into the IntIterator constructor? 

source=ognl:new IntIterator(1,ognl:tableSize)  

?

thanks for helping

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 13:22:26 -0400








tassle component LOOP is for 3.0.

No indicator it is for T-4.1.2

Still blue in the face,.,.,.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:51:17 -0400








All I am looking for is a Loop component.

Tap-4.1.2 has none. 

Unless someone wants to point it out and skip all the heck.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:05:46 -0400








Thanks Bob but I need to span the whole list.

Thanks Andy but I how do I cause a for loop to iterate N iterations independent 
of any collection?

I guess I am looking for static iteration independent of any collection. I am 
inheriting from baseComponent so I am not inclined to do this as a pure java 
widget. I need to operate off the template.

Would @Deletagor be an option?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:34:04 -0400








I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index
%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I 
cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua

How do I resolve contention over INDEX on the nested loop? If I refer to 
INDEX... is it inner or outer?

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index
span jwcid=[EMAIL PROTECTED] source=ognl:new IntIterator(1,100) 
index=ognl:index
/span
/span

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 13:25:25 -0400








Andy, I will give that IntIterator a try... but I have a parameter in OGNL 
called tableSize. How do I pass this into the IntIterator constructor? 

source=ognl:new IntIterator(1,ognl:tableSize)  

?

thanks for helping

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 13:22:26 -0400








tassle component LOOP is for 3.0.

No indicator it is for T-4.1.2

Still blue in the face,.,.,.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:51:17 -0400








All I am looking for is a Loop component.

Tap-4.1.2 has none. 

Unless someone wants to point it out and skip all the heck.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:05:46 -0400








Thanks Bob but I need to span the whole list.

Thanks Andy but I how do I cause a for loop to iterate N iterations independent 
of any collection?

I guess I am looking for static iteration independent of any collection. I am 
inheriting from baseComponent so I am not inclined to do this as a pure java 
widget. I need to operate off the template.

Would @Deletagor be an option?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:34:04 -0400








I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection 
value=ognl:currentObject index=ognl:index
%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page for a 
list==100.

If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a collection from 
0..N.

I need a component with which I can manipulate the front end starting index and 
jump out break at a specified numeric index.

Example: I have a list of 100 . Now I want to render trtd/td/tr and 
show 7 elements and iterate again to do the same until the list is exhausted. I 
cannot do this with FOR.

?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front, back and 
computable boundaries.

Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

_
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews

Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread Robert Zeigler
The outer loop's index paramter and the inner loops index  
parameter are independent. However, the property to which they are  
bound in your page is up to you.
So, in your example, where both index parameters are bound to the  
index property, you're going to get collision, just as you would with:

for(int i=0;i10;i++) {
  for(i=5;i15;i++) {
  }
}
You'll need two distinct index properties here:

.html:
span jwcid=@For source=ognl:collection  
value=ognl:currentObject index=ognl:outerIndex
  span jwcid=@For source=ognl: new IntIterator(1,100)  
index=ognl:innerIndex

...
  /span
/span

.java:
public abstract int getInnerIndex();
public abstract void setInnerIndex(int idx);
public abstract int getOuterIndex();
public absract void setOuterIndex(int idx);

Robert

On Oct 8, 2007, at 10/81:11 PM , Ken nashua wrote:



How do I resolve contention over INDEX on the nested loop? If I  
refer to INDEX... is it inner or outer?


span jwcid=[EMAIL PROTECTED] source=ognl:collection  
value=ognl:currentObject index=ognl:index
span jwcid=[EMAIL PROTECTED] source=ognl:new IntIterator(1,100)  
index=ognl:index

/span
/span

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 13:25:25 -0400








Andy, I will give that IntIterator a try... but I have a parameter  
in OGNL called tableSize. How do I pass this into the IntIterator  
constructor?


source=ognl:new IntIterator(1,ognl:tableSize)

?

thanks for helping

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 13:22:26 -0400








tassle component LOOP is for 3.0.

No indicator it is for T-4.1.2

Still blue in the face,.,.,.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:51:17 -0400








All I am looking for is a Loop component.

Tap-4.1.2 has none.

Unless someone wants to point it out and skip all the heck.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 12:05:46 -0400








Thanks Bob but I need to span the whole list.

Thanks Andy but I how do I cause a for loop to iterate N iterations  
independent of any collection?


I guess I am looking for static iteration independent of any  
collection. I am inheriting from baseComponent so I am not inclined  
to do this as a pure java widget. I need to operate off the template.


Would @Deletagor be an option?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:34:04 -0400








I can whip off a solution in JSP while I am typing...

span jwcid=[EMAIL PROTECTED] source=ognl:collection
value=ognl:currentObject index=ognl:index
%

for ( int i = 0; i  3; i++)
spit out TRTD.../TD/TR
%
/span

Why is it so hard to do such a fundamental thing in tapestry?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:22:50 -0400








martino I am already using the FOR component on my list.

I have a select component that sets a tableSize at the top of page  
for a list==100.


If tableSize = 10, then I want to render 10 items within a TR/TR
And continue until the list is exhausted.

Then I will see 10 rows. Right?

FOR does not permit this to happen. It is blind.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 11:19:16 -0400








Thanks Martino but FOR does not cut it. It blindly iterates a  
collection from 0..N.


I need a component with which I can manipulate the front end  
starting index and jump out break at a specified numeric index.


Example: I have a list of 100 . Now I want to render trtd/td/ 
tr and show 7 elements and iterate again to do the same until the  
list is exhausted. I cannot do this with FOR.


?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does tapestry 4.2 have an iterator component
Date: Mon, 8 Oct 2007 10:57:42 -0400








I would like to do some iteration like a true for loop with front,  
back and computable boundaries.


Is there such a component?

Best regards
Ken in nashua
Help yourself to FREE treats served up daily at the Messenger Café.  
Stop by today!


Peek-a-boo FREE Tricks  Treats for You! Get 'em!

Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power. Play Now!


Windows Live Hotmail and Microsoft Office Outlook – together at  
last. Get it now!


Climb to the top