Re: Form Values updated before Action Called
Re: Form Values updated before Action Called
- Subject: Re: Form Values updated before Action Called
- From: John Huss <email@hidden>
- Date: Mon, 18 May 2009 16:50:30 -0500
takeValuesFromRequest happens before the action and pushes the form
values into the WOComponent instance variables; I would look there and
check context().request().formValues()
John
On Mon, May 18, 2009 at 1:22 PM, David Avendasora
<email@hidden> wrote:
Hi all,
I'm sure this is an aspect of the Request - Response loop that I'm just not fully grasping.
I have a form that is called via an AjaxModalDialog that is outside any other forms on my page. The submit button calls my "saveNewEvent"
I'm running into a problem where when the form is submitted one of the values is being set to an incorrect value - not what is selected in in the component. I set a breakpoint at the beginning of the saveNewEvent() method, but according to the console log, the value is already being set wrong before the method is called.
The value in question is being lazily initialized the first time it is called on the page, but the incorrect value isn't what that lazy-initialized value should be either. There are other fields that are also being lazily initialized in the form, but all the others are set correctly.
Where should I be looking at this point?
Thanks,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden