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 <[email protected]>
Gesendet: Montag, 20. Mai 2019 16:14
An: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]