Assuming accessing elements in the List is O(1) as in ArrayList, it
might be more efficient to just iterate backwards over the indices:
<span jwcid="@For" source="collection" index="i">
<span jwcid="@Insert" value="collection.get(collection.size -
i)">element here</span>
</span>
Todd
On Feb 14, 2006, at 7:50 AM, Inge Solvoll wrote:
No problem, just invert the source collection.
create a getter method in your java page class
(getInvertedCollection())
that reads the first collection and sorts it the way you want, then
point
the source-attribute of the for-component to the new method
<span jwcid="@For" source="invertedCollection">
On 2/14/06, Jean-Eric Cuendet (JeSC) <[EMAIL PROTECTED]> wrote:
Hi,
I would like to display a List with a @For component. Is it
possible to
reverse iterate on it?
Going from index size()-1 to 0?
Thanks
-jec
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: tapestry-user-
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]