Re: [Wicket-user] How do I obtain row index in a DataTable ?

2006-12-29 Thread Johan Compagner

make a jira feature request for this.


On 12/28/06, Ingram Chen [EMAIL PROTECTED] wrote:


Hi all

DataTable + AbstractColumn are already satisfied almost our requirement.
But occasionally I require row index of table, not just cell-index in
AbstractColumn

cols.add(new AbstractColumn(new Model(#), no) {
public void populateItem(Item cellItem, String componentId,
IModel rowModel) {
int cellIndex = cellItem.getIndex();
int rowIndex = 
}
});

is there any way to obtain row index ?

my intuitive thought is using Item = cellItem.getRowItem();


thanks in advanced!

--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How do I obtain row index in a DataTable ?

2006-12-27 Thread Ingram Chen

Hi all

DataTable + AbstractColumn are already satisfied almost our requirement.
But occasionally I require row index of table, not just cell-index in
AbstractColumn

cols.add(new AbstractColumn(new Model(#), no) {
   public void populateItem(Item cellItem, String componentId,
   IModel rowModel) {
   int cellIndex = cellItem.getIndex();
   int rowIndex = 
   }
});

is there any way to obtain row index ?

my intuitive thought is using Item = cellItem.getRowItem();


thanks in advanced!

--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I obtain row index in a DataTable ?

2006-12-27 Thread Igor Vaynberg

hmm, no builtin support for this unfortunately, a quick hack would be

((Item)cellItem.getParent()).getIndex()

-igor


On 12/27/06, Ingram Chen [EMAIL PROTECTED] wrote:


Hi all

DataTable + AbstractColumn are already satisfied almost our requirement.
But occasionally I require row index of table, not just cell-index in
AbstractColumn

cols.add(new AbstractColumn(new Model(#), no) {
public void populateItem(Item cellItem, String componentId,
IModel rowModel) {
int cellIndex = cellItem.getIndex();
int rowIndex = 
}
});

is there any way to obtain row index ?

my intuitive thought is using Item = cellItem.getRowItem();


thanks in advanced!

--
Ingram Chen
��便��啦: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user