Re: How to LDM refreshed after submit?

2009-07-20 Thread Stefan Simik

I had  similar problem last time:
By debugging, I found some solution, that really works, but I am not sure,
if it is elegant and the right wicket-way solution:

1. override onValidate method in form
2. call clearInput() method on all form components, that should refresh
their model








Mauro Ciancio wrote:
 
 Hi wicketers!
 
   The question is the subject of this mail. I have a form with some fields
 and
 I want to those fields being updated after the form submit. All fields
 share
 the same Loadable Detachable Model.
 
   The issue is that the LDM is loaded before onSubmit() and i have no
 chance
 to update the model.
 
 Any ideas?
 Thanks in advance,
 -- 
 Mauro Ciancio
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-LDM-refreshed-after-submit--tp24561354p24578183.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



How to LDM refreshed after submit?

2009-07-19 Thread Mauro Ciancio
Hi wicketers!

  The question is the subject of this mail. I have a form with some fields
and
I want to those fields being updated after the form submit. All fields share
the same Loadable Detachable Model.

  The issue is that the LDM is loaded before onSubmit() and i have no chance
to update the model.

Any ideas?
Thanks in advance,
-- 
Mauro Ciancio


Re: How to LDM refreshed after submit?

2009-07-19 Thread Anton Veretennikov
If you provide methods for updating underlying objects that hold data
in object setters, this must be sufficient. Or may be you forgot about
Feedback messages. If validation goes wrong, setters will not be
called.
Paste your code, please.

On Mon, Jul 20, 2009 at 6:05 AM, Mauro Cianciomaurocian...@gmail.com wrote:
 Hi wicketers!

  The question is the subject of this mail. I have a form with some fields
 and
 I want to those fields being updated after the form submit. All fields share
 the same Loadable Detachable Model.

  The issue is that the LDM is loaded before onSubmit() and i have no chance
 to update the model.

 Any ideas?
 Thanks in advance,
 --
 Mauro Ciancio


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