[Opensource] problem/bug with transition

Michael Rimov rimovm at centercomp.com
Thu Oct 10 14:08:13 PDT 2002


At 11:00 AM 10/10/2002 +0200, you wrote:
>Hi all,
>I am using expresso 4.1 (updated today from CVS).
>I am migrating an app from 4.02 to 4.1.
>
>the problem is that i have a controller with 2 states
>and one of them is transitioning to the other internally
>in the controller, i mean, i obtain a transition
>and i call t.transition(request, response).

David,

You'll want to:
t.addParameter("myparam","myParamValue");

for all parameters you want the external controller to receive.  Otherwise 
the receiving controller has to be aware of what parameters it can and 
cannot touch, which doesn't work very well :).


Alternately:
If you're just transitioning within the controller itself you can always do:

this.transition("myState",request,response);

And the other state handler will get all the parameter the first state 
handler received.

HTH
                                                 -Mike





More information about the Opensource mailing list