ah, thanks! I totally looked over it :)

Clint Popetz wrote:
On Sat, May 9, 2009 at 5:43 PM, J <bluecar...@gmx.com> wrote:
          private transient User user;
                    @Override
          public User getObject() {
              if (user == null)
                  return new User();
              return user;
          }

You didn't set user = new User(), so when the form updates your model,
it's not updating the user stored in the field, but rather one that
only lives for the duration of the form processing, and then your
onSubmit is checking the one represented by the field.

So change the above to:

if (user == null)
   user = new User();
return user;

and it should work.

-Clint

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

Reply via email to