On 19/07/2012 3:26 AM, jam.ntk wrote:
you are right that the LoginUserModel gets null. Now can you please suggest
how and where should I reload the LoginUserModel?
From my previous email: "You need to reload it in the LoadableDetachableModel.load() method."
If in the panel, I try to call this.scmodel.getObject() in the validate()
method I still get the old LoginUser Object. When the control goes back to
page form submit, the LoginUser newUser = getModelObject(); returns the
updated object.
In the form processing process, the models are only updated after successful validation. You need to use FormComponent#getConvertedInput to get the input for validation. See the javadoc for Form for more info.


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

Reply via email to