• 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
My pop-up is not setting the selection?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

My pop-up is not setting the selection?!?


  • Subject: My pop-up is not setting the selection?!?
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Fri, 19 Jun 2009 13:46:23 -0400

Hi All,

I have a form with a pop-up list in there.  An AjaxObserveField refreshes an ajax update container when the selection in the pop-up changes.  But the selection in my component is not being set.

I set a breakpoint in ERXWOForm's takeValuesFromRequest().  It is getting called.  And I see it calling _enterFormInContext() which then calls context._setFormSubmitted(true).  That looks right so far.  Then at that point I inspected context.wasFormSubmitted() as well as context._wasFormSubmitted() and they both are turning false.   :-/  Now that doesn't look right....  So then the form calls super.takeValuesFromRequest() and I was expecting the WOPopUpButton to process the the selection contained in the form values and then and setting the selection.  But that never happens.  I inspected the form values and the newly selected value in the pop-up is in there.  So the pop-up is just not grabbing it from the form values.  :-/

I also printed the class of the context and it is an ERXWOContext54.  This is a Wonder app... or actually the wonderized version of my non-wonder app.  ;-)  My non-wonder app does grab the value from the form values in the request.  My wonder app doesn't.

On an isolated wonder app the pop-up, ajax observe field and ajax update container work perfect.  The selection does get set there.  I'm using WO 5.4.3 and same Wonder version on both.

Any pointers for what to check that would help me find out why my pop-up is not doing takeValuesFromRequest() ?

It is just a normal WOPopUpButton... here's the definition:

GPCIPopUp: WOPopUpButton {
name = "gpciPopUp";
displayString = aGpci.displayString;
item = aGpci;
list = gpciList;
selection = selectedGpci;
}

My setSelectedGpci() method in the component never gets called.  :-/

I feel like a beginner!!!  :-)




 _______________________________________________
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

  • Follow-Ups:
    • Re: My pop-up is not setting the selection?!?
      • From: Gustavo Adolfo Pizano <email@hidden>
    • Re: My pop-up is not setting the selection?!?
      • From: Klaus Berkling <email@hidden>
  • Prev by Date: Re: strange inheritance problem
  • Next by Date: Re: Can't make localization
  • Previous by thread: Re: How can I use a components code?
  • Next by thread: Re: My pop-up is not setting the selection?!?
  • Index(es):
    • Date
    • Thread