Re: How make continous row index in dataTable

2010-05-11 Thread cleverpig
hi,Erwin! Thank you so fast and accurate response! That's great help to me! 2010/5/11 Erwin Bolwidt > > Hi, > > You can do it like this: > > private private DefaultDataTable dataTable; > > // ... > > new AbstractColumn(new Model("#")) { > public void populateItem(Item> cellItem, > String compone

Re: How make continous row index in dataTable

2010-05-11 Thread Erwin Bolwidt
Hi, You can do it like this: private private DefaultDataTable dataTable; // ... new AbstractColumn(new Model("#")) { public void populateItem(Item> cellItem, String componentId, IModel rowModel) { Item item = (Item) cellItem.getParent().getParent(); int index = dataTable.getCurrentPage() * data