Announcement Announcement Module
Collapse
No announcement yet.
MultiActionController and multiple command Bean? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MultiActionController and multiple command Bean?

    hello,
    how can I bind a different command bean for each of the actions defined in the MultiActionController ?

    does it make sense to invoke:
    Code:
    newCommandObject(Clazz.class);
    inside the implementation of every defined action ? ..and not sure it makes sense at all..
    it 'd be nice if we could map, perhaps in the xml descriptor, a command object for every action...

  • #2
    The optional 3rd argument to the method can be a command bean.

    Comment


    • #3
      From its api docs:
      May take a third parameter HttpSession in which an existing session will be required, or a third parameter of an arbitrary class that gets treated as command (i.e. an instance of the class gets created, and request parameters get bound to it)

      Comment

      Working...
      X