Hi all,

I use a GoAndClearFilter with a FilterToolbar and DataTable. The table
contains several ChoiceFilteredPropertyColumns and
TextFilteredPropertyColumns.

When the user filters using the dropdowns and then clicks the clear
button, the page refreshes but the  filter state remains the same.

When using the TextFilters, the clear button behaves correctly. Oddly,
one of my dropdown filters also behaves correctly while the others don't.
The only thing in which the dropdowns differ is the model, which
contains different data. Any ideas what might be the problem here?

I'm using 1.3.5.

here's the code...


Model modelChoices = new HibernateDropDownChoiceModel(Xyz.class, true);
                ...

columns.add(new ChoiceFilteredPropertyColumn(new Model("Model"),
"model", modelChoices));
...     

final FilterForm form = new FilterForm("filter-form", provider) {

                        @Override
                        protected void onSubmit() {
                                dt.setCurrentPage(0);
                        }
                };


                dt = new DefaultDataTable("datatable", columns, provider, 50);
                dt.addTopToolbar(new FilterToolbar(dt, form, provider));
                form.add(dt);
                form.add(new GoAndClearFilter("filter-buttons", form));
                add(form);



-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to