[Opensource] request being cleared on Transition.transition ???

Michael Rimov rimovm at centercomp.com
Tue Nov 5 20:18:52 PST 2002


At 08:47 PM 11/5/2002 -0600, you wrote:
>It seems that logic has been added to
>Transition.transition(ControllerRequest, ControllerResponse, boolean) to
>clear the old request object (Transition.java lines 864 & 884). Why was this
>done?
>
>This is not good for my app because I handle states in this way:
>1. disply statePrompt which transitions to stateProcess upon user input
>2. stateProcess processes the data. If a validate error occurs, set some
>errors outputs and Transition.transition to statePrompt
>
>Previously, this would work nicely. Now that the request is being cleared, I
>no longer have the current values for the fields and the form will be blank
>(except for the error messages).

Mike,

You can change your transition code 
to:  Transition.transition(request,response,false) [to not clear].

I believe the clearing code was added because Transitions between 
controllers were often causing side-affects between controllers, so it was 
made this way so you only do it if "you're really sure"...

HTH!
                                                 -Mike







More information about the Opensource mailing list