I solved it with the following formBackingObject implementation:
Code:
protected Object formBackingObject(HttpServletRequest request) throws Exception {
Object command = null;
try {
command = this.getCommand(request);
} catch (Exception e) {
logger.info("formBackingObject: exception thrown " + e.getMessage());
}
}
if (command == null) {
request.getSession(true);
command = new Object();
}
WebUtils.setSessionAttribute(request, getFormSessionAttributeName(), command);
return command;
}
Looking at the getCommand() implementation in the AbstractFormController leds me to believe that it is intentional that adding the command object to the session between form submissions should be done manually, but maybe I am still missing out on some essentials.