|
|
Spring MVC SimpleFormController to AbstractController
Hi you all
I have this problem.
I have a form with a list of checkboxes and they are set in a SimpleFormController class.
I have a button here to do something on all of this checkboxes.
When I press the button a redirect to the actual page which will be processing the request based on these input criteria is in fact an AbstractController.
I need to pass the chckboxes options from a SimpleFormController with a button which is a SUBMIT button to the AbstractController.
In the simpleFormController I write these
String[] val = request.getParameterValues(quot;tfiToProgramquot;); Maplt;String, Objectgt; m = new HashMaplt;String, Objectgt;(); m.put(quot;tfiSelectedquot;, val); log.debug(val); return new ModelAndView(PROGRAM_PAGE, m);
The PROGRAM_PAGES is actually a redirectrogtfipage and I have put also in the model the check boxes values (which are all lt;input type=checkbox id=tfiToProgram
An in the AbstractController.handleRequestInternal() I don see the tfiSelected variable.-
Does anybody know a clue on this problem. |
|