it is because of the @override annotation on a non-existent method.
Check the signature of the

onSelectionChanged


Cheers
Per

Am 24.04.2012 20:04, schrieb kshitiz:
Hi,

I am trying to implement wicket drop down choice with on selection changed
feature. But as I write :

final DropDownChoice<SelectOption>  postCategoriesDropDown = new
DropDownChoice<SelectOption>("postCategories", iModel,
Arrays.asList(selectOption), choiceRenderer)
            {
                /**
                         *
                         */
                        private static final long serialVersionUID = 1L;
                        
                        @Override
                        protected boolean wantOnSelectionChangedNotifications()
                {
                 return true;
             }
                        
                        @Override
                        protected void onSelectionChanged(final Object 
newSelection)
                        {
                                SelectOption selectOption = (SelectOption) 
newSelection;
                                
                        }
        
                };

eclipse shows an error:

*The method onSelectionChanged(Object) of type new
DropDownChoice<SelectOption>(){} must override or implement a supertype
method*

Can you please tell me what can be the reason?? I am following
https://cwiki.apache.org/WICKET/dropdownchoice-examples.html
https://cwiki.apache.org/WICKET/dropdownchoice-examples.html

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-dropdownchoice-onselectionchanged-must-override-or-implement-a-supertype-method-tp4584391p4584391.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to