I'm using the grid to display a selection where one of the cells is an
ActionLink that currently passes the entity key for use in a detail screen
for via the context, but I want to be able to pass the entry's list index
instead of the key, to avoid a second iteration through the list (doing a
match on the key equality), ex. To be able to do list.get(n) rather than for
(Iterator iter = list.iterator(); iter.hasnext();){if x.key.equals(y.key)
then ... 

I previously had an index on the persisted object the list contains, but
this is messy for inserts / deletes ...

I can work around it but if there was something built-in it would be handy.

Regards,
Jim.

-----Original Message-----
From: robert zeigler [mailto:robert.zeig...@gmail.com] On Behalf Of Robert
Zeigler
Sent: 15 July 2010 22:12
To: Tapestry users
Subject: Re: t:grid, inPlace and rowIndex

What is it you're trying to accomplish, specifically? Ie, why do you need
the row index when you're not rendering?

Robert

On Jul 15, 2010, at 7/154:07 PM , Jim O'Callaghan wrote:

> Is there an in-built solution for a row index in the t:grid that survives
> sorting and works with inPlace="true" - I'm currently getting the error
> "Component X/Y/Zs is not rendering, so render variable 'rowIndex' may not
be
> updated upon sorting".  I'm trying to get something that tells me the
> current index of the item in a list the grid is displaying, and need the
> index to *not* be updated during sorting.  Is this only possible with a
> representation on the entity the grid is displaying?
> 
> 
> 
> Thanks,
> 
> Jim.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to