DropDownChoice submits form when whatOnSelectionChangedNotificaions() is true -----------------------------------------------------------------------------
Key: WICKET-1685 URL: https://issues.apache.org/jira/browse/WICKET-1685 Project: Wicket Issue Type: Bug Affects Versions: 1.4-M2 Environment: Tested on Ubuntu with Opera/Firefox and on XP with IE7 Reporter: Grant Shearer When I override wantOnSelectionChangedNotifications() to return true the select boxes submit the form (instead of doing an ajax call) when they have been changed. You can test this with the sample code below. /******************DropDownTest.java******************/ public class DropDownTest extends WebPage { public DropDownTest() { Form form = new Form("form"); List<String> testOptions = new ArrayList<String>(); testOptions.add( "test1" ); testOptions.add( "test2" ); testOptions.add( "test3" ); form.add( new DropDownChoice("testdrop", new Model("test1"), testOptions) { @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }); add( form ); } } /******************DropDownTest.html******************/ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head></head> <body> <form wicket:id="form"> <select wicket:id="testdrop"></select> </form> </body> </html> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.