PDA

View Full Version : using SimpleFormController with MultiActionController



jou128
Aug 21st, 2006, 11:59 AM
Hi,

If I have a class, say AccountManagerController extending MultiActioncontroller, which performs the CRUD on an account, but to add and edit account, my class really needs to extend the SimpleFormControlller, in this case, what is the common solution? can anyone shed some lights on this? Can you really group a form view with a listing view in a MultiActioncontroller subclass in Spring? Most Spring tutorials I've seen claim you can do such but I've to yet see a concrete example. thanks.

s o

manifoldronin
Aug 21st, 2006, 12:41 PM
You can always use ServletRequestUtils or ServletRequestDataBinder to implement your own binding process.
On the other hand, MultiActionController is just a convenient base class for those that don't need serious form binding. So in this case, I would just break AccountManagerController into several SimpleFormController subclasses.