Hi, you have to call #setDefaultFormProcessing(false).
Have fun Sven On 29.06.21 09:46, vahid ghasemi wrote:
Hello guys. I have a form that has two buttons (Submit, Reset) and my form is CompoundPropertiesModel. The type of these buttons are AjaxButtons. but Reset only works when the form is valid, otherwise it goes into the onError method. The type of reset button tag is "reset" and also the submit button is "submit". Before submitting the form (and without the wicket ajax button for reset button) the reset button is working. But after submitting when I click on the reset button (still without the wicket ajax button) my inputs don't go empty. So i think my problem was for CompoundPropertiesModel and i should set empty fields of class and i need to add a wicket button to reset button that reset inputs. But the reset buttons it's not working because he thinks it is a submit button. So my questions are: 1- How can i add some button link reset button for working when form is not valid. 2- What is the best way to reset the form with a button? 3- why the reset button (just with type="reset") is not working after submitting form?
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org