Re: The order in which formelements are processed
Re: The order in which formelements are processed
- Subject: Re: The order in which formelements are processed
- From: Chuck Hill <email@hidden>
- Date: Mon, 21 Apr 2003 12:04:35 -0700
Hi Kaj,
I think this is the right solution for you needs. Otherwise you have a
method, setData, that requires that another method, setMetaData, be called
first in order for it to function correctly. However, you don't have any
way of ensuring this other than the implementation of details of code you
have no control over. That is brittle design which should be avoided.
I try to avoid having anything in the set methods called by
takeValueFromRequest (other than a straight assignment) for this reason.
It is sometimes necessary to set a flag when a value is changed so that
processing can occur at a later stage - before invokeAction or
appendToResponse.
Chuck
At 06:55 PM 21/04/2003 +0200, Kaj Hejer wrote:
>At 11:45 -0500 21-04-2003, Jonathan Rochkind wrote:
>>I don't know if there's any way you can do this except making sure
>>the popup button is in the form BEFORE the WOFileUpload. I'm pretty
>>sure that earlier inputs get their values first.
>>
>
>
>Hi!
>
>Thanks for answering!
>
>I have moved the processing that depends on the value of the
>popup-button from the setData method to the method that get called
>when the user sumbit the form, and then it ofcource works ok, since
>then all the formvalues has been processed in takeValuesFromRequest.
>
>
>-Kaj :)
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.