[Opensource] request being cleared on Transition.transition ???
Mike Traum
mtraum at cirnetwork.org
Wed Nov 6 10:05:18 PST 2002
In the Transition.transition(request,response,false) method, the boolean
actually refers to clearing the response object, not the request. So, there
is no way to prevent clearing the request.
Can we make the boolean refer to clearing both the request and response? If
so, I'll make the change...
Mike
-----Original Message-----
From: opensource-admin at jcorporate.com
[mailto:opensource-admin at jcorporate.com]On Behalf Of Michael Rimov
Sent: Tuesday, November 05, 2002 10:19 PM
To: opensource at jcorporate.com
Subject: Re: [Opensource] request being cleared on Transition.transition
???
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
_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list