>
> ---------- Forwarded message ----------
> From: Pierre Coquentin <[EMAIL PROTECTED]>
> To: wicket-user@lists.sourceforge.net
> Date: Wed, 18 Jul 2007 09:36:44 +0200
> Subject: Row index in datatable
>
> hello all,
>
> I need to obtain row index in datatable when populating cell item.
> column = new AbstractColumn(...)
> {
>      public void populateItem(Item cellItem, String componentId, IModel
> model)
>      {
>         cellItem.getIndex() // Index of column
>         ??? // Index  of row
>         cellItem.add(...);
>      }
> };
>
>
> After some deep research, i found same question posted
>
> http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg21743.html
> but no answer except an hack which don't work with wicket 1.3b2 (and
> didn't find the feature in JIRA).
> If someone can help me :P


i guess ingram never filed that jira request :( maybe you should

if this doesnt work:
((Item)cellItem.getParent()).getIndex()
then this will
((Item)cellItem.findParent(Item.class)).getIndex()

-igor






Thanks in advance.
>
> Pierre
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to