|
|
Multiple commands per page
Hi,
is there any way how to bind multiple command objects in one page? I tried to use MultipleActionController but it supports only multiple actions (e.g. multiple submit buttons per one form). I think about to create new abstract BaseMultipleCommandController (corresponding to standard BaseCommandController) but I don't want invent the wheel again. Is there any standard (from org.) or third party solution? Thank you for infromation.
Regards, Darbic
If you have multiple forms on your page you might also want to have multiple form controllers for handling the different form submits. Each form controller can have it's own form backing object.
mand1.property1 etc.
Having a nested command as Marten explained is probably a better solution ;-)
Having multiple controllers on one page, as I suggested previously, might result in a messy solution, now that I think a bit more about it.
However, hypothetically, it would be possible as well, wouldn't it?
Thank you everybody for suggestions. The composite object is the solution what I thought about. Maybe, I try to write a multi command controller then I'll give it available arround. |
|