Hi!

> componentInstance.modelChanged();
> componentInstance.setModelObject(selectedChoice);

Note: componentInstance.setModelObject will call modelChanged from
within if the model is actually changed

> 1. On the Form  the user types in some information and then hits Save.
> 2. The form comes back with validation error messages.
> 3. The user now clicks on Cancel button to discard the form
> 4. The user clicks the New button and a form is loaded with the old data( I
> had the data typed in the previous form repeated even though I cleared the
> input form.clearInput.)
> 5. I add the form.modelChanged() and now it clears completely or takes into
> account that its a fresh form.

I could comment more if I saw the code.

**
Martin

>
>
>
>
> On Sat, Jul 24, 2010 at 2:42 AM, Nivedan Nadaraj <shravann...@gmail.com>wrote:
>
>> Cheers mate thanks for that. Only I thought it was one step closer to
>> building my own component and know the details of it. But yeah point taken.
>>
>> Cheers
>> Nive
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to