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??
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
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
-
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
I´m using it that way:
final Form regF = new Form("RegisterForm") {
@Override
protected void onSubmit() {
Users foo =
(Users) this.g
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
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