Hi,

use "change" instead of "onchange".

dropdown.add(new AjaxFormComponentUpdatingBehavior("change") {

This works for me on Wicket 8.4.0

Greetings Matthias

-----Ursprüngliche Nachricht-----
Von: Sibgha Nazir <sibgha...@gmail.com> 
Gesendet: Montag, 20. Mai 2019 16:14
An: users@wicket.apache.org
Betreff: Wicket DropDown Change event

Hi,

I am not able to trigger the on change event of the drop down in the wicket.

In the class DPanel,java, I am simply trying to print on the console when the 
change event has occured.

        dropdown.add(*new* AjaxFormComponentUpdatingBehavior("onchange") {

            /**

             *

             */

            *private* *static* *final* *long* *serialVersionUID* = 
-6744838136235652577L;


            *protected* *void* onUpdate(AjaxRequestTarget target) {

                System.*out*.println("Changed");


            }

        });

Need Help. Following is my quick start application.
https://github.com/Sibgha360/dropdownexample.git

Thanks

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

Reply via email to