[Opensource] explain the problem with addparam
larry hamel
expresso at codeguild.com
Sun Apr 20 23:48:59 PDT 2003
Are you familiar with "hidden fields" in HTML? There are some good Web tutorials on this if you search in google.com . In expresso, you can create Inputs which are of this type, and they will translate into HTML hidden fields. There are many examples of this in the expresso code, where the first state receives several form fields, and does some processing, and puts some of the users information back on the next page, to get more information or whatever. I don't know what's going on with your other problem with a parameter. can you explain that one in more detail?
At 12:33 PM 4/19/2003, you wrote:
>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("s! tate", "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 dont 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 dont 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.(Im using expresso 4.)
>>>
>>>Thanks for your help.
>>>
>>>
>>>Amir Ali Ghadiri
>>>B->
>>>
>>>
>>>
>>>Do you Yahoo!?
>>>The New Yahoo! Search - Faster. Easier. Bingo.
>>
>>_______________________________________________
>>Opensource mailing lis! t
>>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!?
><http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com>The New Yahoo! Search - Faster. Easier. Bingo.
More information about the Opensource
mailing list