Re: GetModelObject returns null-filled Object?

2008-08-31 Thread Timo Rantalaiho
On Wed, 27 Aug 2008, Markus wrote: > Ok, figured out, that the Spring-injected Bean is the reason for this > behavior! > Works fine if I use u = new Users(); instead of the Spring-injected Users as > Model. > > Any clues how to circumvent this behavior without instantiating the model > myself??

Re: GetModelObject returns null-filled Object?

2008-08-27 Thread Markus
Ok, figured out, that the Spring-injected Bean is the reason for this behavior! Works fine if I use u = new Users(); instead of the Spring-injected Users as Model. Any clues how to circumvent this behavior without instantiating the model myself?? greetz Markus p.s.: Sorry for the frequent posti

Re: GetModelObject returns null-filled Object?

2008-08-27 Thread Markus
As demanded by Nicklas the 2 files causing the Problem attached to this email. (I hope it passes the mailingList-robot) Hope you can tell me where the Error sits :/ (Excuse me for the bad formatting before, looked good in my Mail-Agent :( ) Items: RegisterPage.java RegisterPage.html -

Re: GetModelObject returns null-filled Object?

2008-08-27 Thread Markus
But whats weird is, that target contains the values. Its something with CGLib :/(look at debugger @ bottom) Can anyone help me with this issue? Thats what eclipse-Debugger says to the variable Users foo = (Users) form.getModelObject(); foo Users$$EnhancerByCGLIB

Re: GetModelObject returns null-filled Object?

2008-08-27 Thread Markus
I´m using it that way: final Form regF = new Form("RegisterForm") { @Override protected void onSubmit() { Users foo = (Users) this.g

Re: GetModelObject returns null-filled Object?

2008-08-27 Thread James Perry
What model are you using for the form? How are you setting it? While you're there have a look at IFormValidator (look at its implementations to see how to use it) as it's much neater to add your Hibernate validator like this rather then hard coding it in your overridden onSubmit method. Best, Jam

GetModelObject returns null-filled Object?

2008-08-27 Thread Markus
Following Code: (just Stubs used for Form / onSubmit for illustration) Form { onSubmit { Users foo = (Users) this.getModelObject(); String bar = foo.getNick(); //Hibernate-Validator validateForm() if (!validateForm(foo)) { (…) } When I use the debugger and look at foo, e