If I use an AjaxLink instead of an AjaxButton I still get the same
behaviour. The values in the form are not reset when clicking the Cancel
link/button.
My form has a CompoundPropertyModel and just three TextFields.
Each TextField has an AjaxFormComponentUpdatingBehavior for validation on
event
directly on the
component without calling updateModel.
Thanks,
-David Phillips
-Original Message-
From: heapifyman [mailto:heapify...@gmail.com]
Sent: Tuesday, August 07, 2012 5:07 AM
To: users@wicket.apache.org
Subject: Re: [1.5] AjaxFormComponentUpdatingBehavior and Cancel AjaxButton
.
Thanks,
-David Phillips
-Original Message-
From: heapifyman [mailto:heapify...@gmail.com]
Sent: Tuesday, August 07, 2012 5:07 AM
To: users@wicket.apache.org
Subject: Re: [1.5] AjaxFormComponentUpdatingBehavior and Cancel AjaxButton to
reset form
If I use an AjaxLink instead
object again?
Thanks,
-David Phillips
-Original Message-
From: heapifyman [mailto:heapify...@gmail.com]
Sent: Tuesday, August 07, 2012 5:07 AM
To: users@wicket.apache.org
Subject: Re: [1.5] AjaxFormComponentUpdatingBehavior and Cancel
AjaxButton to reset form
If I use
The cancel link should just set an empty model object to the form.
What if I'm editing an existing entity that's coming from a database (not
creating a new one) and I want to display the original values after
clicking Cancel? I assume I have to reload the entity and set it as the
model object
Hello,
I've been struggling for a while now with a problem that a Cancel
AjaxButton (with setDefaultFormProcessing(false)) calling form.clearInput()
would not reset my form to original values.
The problem seems to be that I have AjaxFormComponentUpdatingBehavior
(onchange event) for validation
Hi,
form.clearInput() only clears the raw input (what is received in the
current request) of the form components. That is, it doesn't modify the
underlying models. With setDefaultFormProcessing(false), this means that
your FormComponent models are not updated at all.
The