Dec 17th, 2010, 09:09 AM
i have a simple bean like this:
private String field1
private String field2
private String field3}
and a 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
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
I found, the Test object was not initiate by the Command constructor... i'm sorry