[Wicket-user] Why item.getIndex() always zero?

2006-09-14 Thread wq
.. int c = 0; .. List columns = new ArrayList(); columns.add(new AbstractColumn(new Model(操作)){ public void populateItem(Item cellItem, String componentId, IModel model){ c +=

Re: [Wicket-user] Why item.getIndex() always zero?

2006-09-14 Thread wq
. Martijn Dashorst-4 wrote: Because the cellItems are the column items... You only have one column, so it will always return 0 (first column). Martijn On 9/14/06, wq [EMAIL PROTECTED] wrote: .. int c = 0; .. List columns = new ArrayList

Re: [Wicket-user] filtertable and checkgroup cannot work together

2006-09-08 Thread wq
! Thanks Igor! igor.vaynberg wrote: noep, no sample code. just try taking the original toolbar and removing the form it creates - and pass one into the constructor instead. -Igor On 9/6/06, wq [EMAIL PROTECTED] wrote: thanks Igor! without a form, how can I get the filter input

Re: [Wicket-user] filtertable and checkgroup cannot work together

2006-09-06 Thread wq
that usecase is not supported. please add an rfe for it. if you want one right now then you have to create your own variant that doesnt use an embedded form. it would be pretty much a copy and paste job of the current toolbar but w/out the form. -Igor On 8/31/06, wq [EMAIL PROTECTED] wrote

[Wicket-user] filtertable and checkgroup cannot work together

2006-08-31 Thread wq
final CheckGroup group=new CheckGroup(group, new ArrayList()); ... group.add(new CheckGroupSelector(groupselector)); .. SortableWapSrcDataProvider provider = new SortableWapSrcDataProvider(); DefaultDataTable table = new DefaultDataTable(table,columns,provider,30); table.addTopToolbar(new

Re: [Wicket-user] filtertable and checkgroup cannot work together

2006-08-31 Thread wq
HELP! HELP! wq wrote: final CheckGroup group=new CheckGroup(group, new ArrayList()); ... group.add(new CheckGroupSelector(groupselector)); .. SortableWapSrcDataProvider provider = new SortableWapSrcDataProvider(); DefaultDataTable table = new DefaultDataTable(table,columns