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 <TR><TD>...</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 <tr><td></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]