• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Form Values updated before Action Called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Form Values updated before Action Called


  • Subject: Re: Form Values updated before Action Called
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 19 May 2009 12:49:54 -0700

On May 19, 2009, at 5:10 AM, David Avendasora wrote:
On May 18, 2009, at 9:00 PM, Chuck Hill wrote:
On May 18, 2009, at 11:22 AM, David Avendasora 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?

Are the form values as submitted correct? Is this value dependent on another value in the form? An early form value may be causing a change in takeValues before/after this value is processed.

Yes they are dependent It's a form for entering a time using separate PopUps for the hour, minute and AM/PM. They all work together to set the time on a date chosen using the AjaxDatePicker. I figured it was something to do with this inter-relationship, but I just can't seem to track down what it is.


The odd thing is that when the page loads, all the defaults are set correctly. All the PopUps are correct. Whether I change the values, or just leave the defaults, this particular value gets changed to something that doesn't even match the default.

Since a majority of what I do is D2JC, I have dealt very little with the RR loop and am just now starting to learn its power and subtitles. I've read and reread Chapter 6 of PWO, but I just can't see where I'm going wrong.


I will we need more details to decipher this.


Chuck


-- Chuck Hill Senior Consultant / VP Development

Come to WOWODC'09 in San Fran this June!
http://www.wocommunity.org/wowodc09/

_______________________________________________
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


References: 
 >Form Values updated before Action Called (From: David Avendasora <email@hidden>)
 >Re: Form Values updated before Action Called (From: Chuck Hill <email@hidden>)
 >Re: Form Values updated before Action Called (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Oracle driver...
  • Next by Date: Re: Setting the DEFAULT_JVM_OPTIONS
  • Previous by thread: Re: Form Values updated before Action Called
  • Next by thread: EOF Stumper (for me at least)
  • Index(es):
    • Date
    • Thread