[Opensource] explain the problem with addparam

Ali Ghadiri ali_gholi_ir at yahoo.com
Sat Apr 19 12:33:20 PDT 2003


I have a state in which I make a query by the form fields I got from a form in previous state, this state shows some of the outputs ( due to the query it makes) and then it shows a button which transfers user again to this state (same state)  but with different query just like a loop.(to show the rest of output). So I want to transfer my response to this state when user clicks for it. Because I need some of the form fields when I come back to this state again but this time I don't have the form fields. How can I get them?(I added them to my request and it worked but I still have problem in getting one of my parameters which I adds each time I come to this state. I decreases its length but it didn't work.) Any idea? Thanks 

larry hamel <expresso at codeguild.com> wrote:I'm not sure I understand your question. You want to carry the information from one state to another? And you don't want to use hidden fields? if you are just forwarding a request from one state to another within the same HTTP call, you can use setFormCache(). carrying information between client-requested states gets a little trickier, with hidden field being the cleanest method, and using the persistent session possible also.

Larry

At 12:49 PM 4/18/2003, you wrote:

>Hi all,
>
>I have a problem in getting response object. I have a transition in one of my program states and it returns to itself. My state name is processCosumedFuel and here is the transition part of this state (takes place by transition button):
>
> Transition placeOrder = new Transition("processConsumedFuel", "Next", getClass().getName());
>
> placeOrder.addParam("state", "processConsumedFuel");
>
> placeOrder.addParam("nextRetrieve", nextRetrieve);
>
>response.addTransition(placeOrder);
>
>I have a form before this state and I don't have its fields when I come back to this state again (I get them by response.getFormCache). I want to have them when I come back to this state and I don’t want to add all of them (there are so many) to my request object. How can I do that in other ways? (It would be better if I don’t have to add another state.)
>
>p.s. I examined both ‘setControllerResponse(response)’ of transition object and setObjectParameter("response",response) of request object but nothing happened.(I’m using expresso 4.)
>
>Thanks for your help.
>
>
>Amir Ali Ghadiri
>B->
>
>
>
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo. 

_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/

Amir Ali Ghadiri
B->


---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20030419/b2c0753c/attachment-0002.htm


More information about the Opensource mailing list