-
Dec 17th, 2010, 09:09 AM
#1
Auto-grow binding
Hello,
i have a simple bean like this:
class Test{
private String field1
private String field2
private String field3
}
and a Command
class Command{
private String username
private String password
private Test composite
}
Can I auto-bind that object with a composite-path? like this:
<form:input path="username" />
<form:input path="password" />
<form:input path="composite.field1" />
<form:input path="composite.field2" />
<form:input path="composite.field3" />
I tried like before, but I get this error:
auto-grow nested property path: java.lang.InstantiationException
Last edited by Tobia; Dec 20th, 2010 at 02:43 AM.
-
Dec 19th, 2010, 03:43 PM
#2
Your form code looks ok, but your bean and command class both are called "Test". Is this right? I'm asking because for me the composite property is a command object.
Otherwise it is difficult to say what is wrong here. Could you post some more details?
-
Dec 20th, 2010, 08:00 AM
#3
I found, the Test object was not initiate by the Command constructor... i'm sorry
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules