Hy folks,

im trying to set up an DataTable with FilterToolbar but now im stuck. I want
to use the GoAndClearFilter, and that for i have to add an additional column
to the DataTable.

Im not quiet sure, which implementation is the right one for that, but as
far as i dont want to populate any data or something i guess the
FilteredAbstractColumn is the one to go with.

So i added an FilteredAbstractColumn, auto-generated the unimplemented
methods and tried to run it, still without GoAndClearFilter, which wouldve
been the next step.
But i got following exception:

java.lang.ArrayStoreException: de.wicketgarden.table1.Table1Page$1
     at de.wicketgarden.table1.Table1Page.<init>(Table1Page.java:46)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     ...

Heres line 46 of Table1Page.java:

columnArray[4] = new FilteredAbstractColumn<DocumentLink>(new
Model<String>("")) {
            private static final long serialVersionUID = 1L;
            @Override
            public void populateItem(Item<ICellPopulator<DocumentLink>>
cellItem, String componentId, IModel<DocumentLink> rowModel) {
                // no-op
            }
            @Override
            public Component getFilter(String componentId, FilterForm form)
{
                return null;
            }
        };



Any suggestions on this? Does anyone know what this is caused by?

Reply via email to