ojs
Oct 5th, 2005, 12:31 PM
Hallo,
I'd like to use doSubmitAction() instead of onSubmit() in a simple controller, but obviously my referenceData() is called but the returned Map isn't merged with the ModelAndView.
Code that work:
@Override
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
throws Exception
{
// ... my save methods ...
return showForm(request, response, errors);
}
Code that doesnt' work:
@Override
protected void doSubmitAction(Object command)
throws Exception
{
// ... my save methods ...
}
In the latter case the form is correctly redisplayed, but all data set by referenceData() is missing.
Any hints?
Best
Oliver
I'd like to use doSubmitAction() instead of onSubmit() in a simple controller, but obviously my referenceData() is called but the returned Map isn't merged with the ModelAndView.
Code that work:
@Override
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
throws Exception
{
// ... my save methods ...
return showForm(request, response, errors);
}
Code that doesnt' work:
@Override
protected void doSubmitAction(Object command)
throws Exception
{
// ... my save methods ...
}
In the latter case the form is correctly redisplayed, but all data set by referenceData() is missing.
Any hints?
Best
Oliver