[Wicket-user] Row index in datatable
-- Forwarded message -- From: Pierre Coquentin [EMAIL PROTECTED] Date: Jul 18, 2007 1:48 AM Subject: Problem to send mail to user list Wicket To: [EMAIL PROTECTED] Hi, this is not a spam :P Sorry to disturb you, i tried twice to send a question to user list wicket but it appears that my mails have been lost and i don't know why. Is there something i'm doing wrong ? Furthermore i have now another question about how to close a modal window automatically without AJAX... please help :) Thanks in advance, Pierre PS : i forward my first mail as attachment -- 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 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
Re: [Wicket-user] Row index in datatable
-- 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