Hi, I have two entities in my Spring MVC app, 'Application' and 'Customer'.
The Application edit form has a drop-down list of Customers so that one can
be associated with the Application. THis is done via the following tags in
the JSP;
<form:select path="customer">
<form:options items="${customers}" itemValue="id"
itemLabel="name"/>
</form:select>
When I submit the form I get a validation error:
"Failed to convert property value of type [java.lang.String] to required
type [com.ism.ismid.model.Customer] for property customer; nested exception
is java.lang.IllegalArgumentException: Cannot convert value of type
[java.lang.String] to required type [com.ism.ismid.model.Customer] for
property customer: no matching editors or conversion strategy found"
Can someone see why this is happening?
--
View this message in context:
http://www.nabble.com/Problemn-associating-entities-via-form-tf4616135s2369.html#a13183354
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]