I have looked at the other posts people have made about this problem and each
says that the solution is to call setDefaultFormProcessing(true) on the
clear button. I have done that and it doesn't solve my problem. I am doing
this in a modal window but I don't know if that has anything to do with the
problem. Here is my code:

                                new FilteredAbstractColumn(new Model(""))
                                {
                                        private static final long 
serialVersionUID = 1L;

                                        public void populateItem(Item cellItem, 
String componentId, IModel
rowModel)
                                        {
                                                cellItem.add(new 
WebMarkupContainer(componentId, new Model("")));
                                        }
                                
                                        public Component getFilter(String id, 
FilterForm form)
                                        {
                                                GoAndClearFilter filter = new 
GoAndClearFilter(id, form)
                                                {
                                                        private static final 
long serialVersionUID = 1L;

                                                        @Override
                                                        protected Button 
getClearButton()
                                                        {
                                                                Button result = 
super.getClearButton();
                                                                
result.setDefaultFormProcessing(true);
                                                                return result;
                                                        }
                                                };
                                                return filter;
                                        }
                                
                                }
                        };

Thanks
-- 
View this message in context: 
http://www.nabble.com/GoAndClearFilter-not-clearing-tp19747163p19747163.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to