http://www.tapestrycomponents.org/Tassel/app?service=external/ ViewComponent&sp=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 <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!

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

Reply via email to