This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Pre binding fields on a command object

Mar 11th, 2005, 05:02 AM

I'm using a SimpleFormController. I use the same form to edit or create a new hibernate command object that's saved to the database afterwards.

One field should be immediatly set when the form is loaded. I pass the parameter through the request. This works when I use setBindOnNewForm(true). But there are some required fields, and the form gives an error because it's binded.

Is there a way to automaticly set some properties on a command object without really posting the form?