Re: reset form

2021-06-29 Thread Bas Gooren
Hi, To remove any user input in form fields, you also need to call Form#clearInput() (or FormComponent#clearInput() to clear specific components). Without this call, the fields will retain the user input instead of showing the empty string you set (assuming that the fields you set to an empty

Re: reset form

2021-06-29 Thread Maxim Solodovnik
you have to add the fields to the target On Tue, 29 Jun 2021 at 15:22, vahid ghasemi wrote: > First, thanks for the speed of your support. > >1 AjaxButton reset = new AjaxButton("reset") { > >2 @Override > >3public void onSubmit(AjaxRequestTarget target) { > >

Re: reset form

2021-06-29 Thread vahid ghasemi
First, thanks for the speed of your support. 1 AjaxButton reset = new AjaxButton("reset") { 2 @Override 3public void onSubmit(AjaxRequestTarget target) { 4 name = nationalCode = email = phone = password = confirmPassword = ""; 5

Re: reset form

2021-06-29 Thread Sven Meier
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