PDA

View Full Version : Two Questions regarding command object in session scope


Michael Kastner
Oct 4th, 2005, 09:36 AM
Maybe sombody can help,

I am getting confused about the command object. Especially in session scope.

First question: Are the command object and the formBackingObject in the form controller supposed to be the same object?

Second: Where does my session command object go which is created by the SimpleFormController when I move on to the MultiActionController? Respectively, how can I access it there? It seems to be not there anymore. I get a binding error on my page.

Any help is appreciated.

Sincerely

Michael Kastner

martinl
Oct 4th, 2005, 12:24 PM
1. I believe "command object" and "form backing objects" are two names for the same thing.

2. Command objects belong to a controller class, and cannot (easily) be passed betweeen different pages/controller instances. If you need to work on a command object in more than one step, perhaps you should have a look at AbstractWizardController?