Re: issue with input type=reset
Meanwhile I tried to add another submit button and just labeling that as a reset button. This is almost working but after calling the onSubmit method of my reset button the onSubmit method of my form get's triggered as well?! This is my button: - Button resetButton = new Button(reset) { public void onSubmit() { doSomething(); } }; add( resetButton ); - And idea how to avoid that behaviour? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/issue-with-input-type-reset-tp3411379p3411408.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: issue with input type=reset
Hi You can add a wicket button on your form and implement onClick/onSubmit on the button. There many buttons including ajax enabled ones. See javadocs for details. Something like form ... button wicket:id=myButton/button /form myForm.add(new Button(myButton){ @Override public void onSubmit() { //do your stuff here } }) Josh.
RE: issue with input type=reset
And idea how to avoid that behaviour? resetButton.setDefaultFormProcessing(false); - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: issue with input type=reset
thanks - that's it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/issue-with-input-type-reset-tp3411379p3411433.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org