Hi,
I'm trying to use the Spring Data-Binding with a blossom Template.
In the controller I'm adding my Command-Object to the Moddel-Map:
model.addAttribute("command", command);
But if I try to access the Command-Object by my Spring-Form:
<@form.form commandName="command" method="POST">
I always get the error:
javax.servlet.ServletException:
org.springframework.web.util.NestedServletException: Request processing failed;
nested exception is info.magnolia.module.templating.RenderException: Can't
render template /templates/[......].ftl: IllegalStateException: Neither
BindingResult nor plain target object for bean name 'command' available as
request attribute
If I forward the command-object by an Reqest-Attribute the form is show but the
data-binding is not working correctly because the Command-Object is created
from scratch within the databinding and all field that are not in the form
become null.
Is there something wrong with my data-binding?
Thank you and regards, Michael
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=9bd8d683-1dd0-4602-a84b-cc518d3c815a
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------