-
Dec 16th, 2010, 08:12 AM
#1
Spring MVC binding. Need help.
I have the following command object:
public class User {
private Department department;
private String firstName;
private String lastName;
private String login;
private String password;
...
}
which should be rendered at jsp page:
<form:input path="lastName" />
<form:input path="department.name"/>
<form:input path="department.description"/>
So when I submit with empty department.name and department.description the Spring auto-instantiate object Department with empty properties. (See https://jira.springframework.org/browse/SPR-6032 I would keep autoGrowNestedPaths=true)
What is need to do for getting back User object where Department object=null?
Tags for this Thread
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