You should only need access to the Model on the Form, which you would set to
empty, and then you have two options
1. Get access to the TextField so you can repaint it with AjaxRequestTarget
2. Use FormComponent's IVisitor pattern to visit everything in that form to
repaint
On Jan 26, 2010, at
For anybody who's interested, I got this to work by just
calling form.textField.setModelValue(new String[]{""});
I had to make the fields member vars of the form, though.
If there's another cleaner way of doing it, I'd appreciate seeing it.
Flavius wrote:
>
>
> I have a panel with a form on
I tried that. It didn't work.
Actually Component#setDefaultModelObject() already calls
modelChanging();
model.setObject(object);
modelChanged();
I also looked at the ajax guestbook example.
igor.vaynberg wrote:
>
> call form.modelchanged() after setting the new model
>
> -igor
>
> On Mon
call form.modelchanged() after setting the new model
-igor
On Mon, Jan 25, 2010 at 9:23 PM, Flavius wrote:
>
> I have a panel with a form on it. I've attached an ajaxButton to submit
> the form. Afterward, I want the inputs to be reset with the backing model
> reset. I've done a lot of refres