Hi, - OK, I will red it clearly *[Wicket-user] Design questions: Use of controllers and wicket models * * *- there should be a method on Item like getIndex()
ICellPopulator#populateItem(Item cellItem, String componentId, IModel rowModel) but it is cellItem it return index of column, not index of row when I call cellItem.getIndex(), it always return 1 (It is second column in my table) Am I misunderstand? - see how DataTable does, namely DataTable.newRowItem() i believe. Thank, I can do it now. Thank you again, Blackzabaha Igor Vaynberg wrote: > > On 3/9/07, *blackboy zabaha* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > - with the checkbox I can't get the list of > selected row, I try to > do DataGridView.getModelObject > but it return null, so my question is how can I get > list of model object > in current page of DataGridView, it take IDataProvider > rather than > IModel, not like ListView, isn't it used for > displaying only not for > modifying in form because it does not hold any model > and so can't update > it's model? > > > i have very recently described how to do this in this thread: > > *[Wicket-user] Design questions: Use of controllers and wicket models > > * > > - how can I get row index of each row, in > ICellPopulator#populateItem(Item cellItem, String > componentId, IModel > rowModel), both cellItem & rowModel seem to contain no > detail of row index. > > > there should be a method on Item like getIndex() > > - how to dynamic change style of each row to > class="odd"/class="even" up to row index in > DataGridView. > > > see how DataTable does, namely DataTable.newRowItem() i believe. > > -igor > > > > Thank you, > > Blackzabaha > > > > > > ____________________________________________________________________________________ > The fish are biting. > Get more visitors on your site using Yahoo! Search Marketing. > http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php > > ------------------------------------------------------------------------- > 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.php&p=sourceforge&CID=DEVDEV > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > _______________________________________________ > Wicket-user mailing list > [email protected] > <mailto:[email protected]> > 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.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 ------------------------------------------------------------------------- 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.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
