Sure, on a foreach you can use the components.xxx.index to see which one
you are on.  Then we maintain the length of the list in the visit.  Then
you can 
use ognl for the comparison.

This one here compares the index with the visit value and then a
condtional decides whether the link is visible.

<span jwcid="@Conditional" invert="true"
condition="ognl:components.attributeSources.index ==
page.visit.tasklet.currentState.taskletListSize-1"><a href="#"
jwcid="moveDown">move down</a></span>

Hth,

Mark

-----Original Message-----
From: Dan Adams [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 14, 2005 10:08 AM
To: Tapestry users
Subject: determining first or last row in a table

Anyone know how you can tell if the current row in a table is the first
or last row?

-- 
Dan Adams
Software Engineer
Interactive Factory


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


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

Reply via email to