[Opensource] Getting form fields
larry hamel
expresso at codeguild.com
Sat Apr 19 00:28:31 PDT 2003
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):
>
><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 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 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!?
><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