• 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: newbie question regarding WOPopUp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie question regarding WOPopUp


  • Subject: Re: newbie question regarding WOPopUp
  • From: Timmy <email@hidden>
  • Date: Tue, 30 May 2006 11:45:44 -0700

Pierce,

Thanks for the tip. When I bind my selectedBuilding variable to "value" I actually get null in my DirectAction for request ().formValueForKey("buildingString"). So, actually a step back - or I'm doing something else wrong. Here is what my current bindings look like.

displayString		currentBuilding
item				currentBuilding
list				buildingList (instantiated as indicated below)
name			"buildingString"
selection		selectedBuilding
value			selectedBuilding

Tim

On May 30, 2006, at 11:26 AM, Pierce T. Wetter III wrote:


On May 30, 2006, at 11:15 AM, Timmy wrote:

WOList:

I'm adding a WOPopUp element to a search page I am creating. I am manually creating the NSArray with String values that will populate the pop-up rather than using EO's. I am building my list like so:

NSArray buildingList = new NSArray(new Object[] {"Building One","Building Two","Building Three"});

for my PopUp, I'm binding 'name' like "myElementName."


My WOSubmit is executing a DirectAction which is grabbing the selected PopUp value via request().formValueForKey ("myElementName"). The value returned by that method is a String representing the index of the selected item from my WOPopUp rather than the actual text string ("Building One", etc.). I'm sure this must be the expected behavior but I could use a nudge in the right direction to get the actual selected string value back rather than the index value.


Thanks for any available assistance,

bind value in addition to name. Value is what the form passes back to you, name is what the form displays.



WOTip: Don't use load balancing in the adaptor. Use roundrobin. More Tips: http://www.twinforces.com





_______________________________________________ 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: newbie question regarding WOPopUp
      • From: "Pierce T. Wetter III" <email@hidden>
References: 
 >newbie question regarding WOPopUp (From: Timmy <email@hidden>)
 >Re: newbie question regarding WOPopUp (From: "Pierce T. Wetter III" <email@hidden>)

  • Prev by Date: Re: newbie question regarding WOPopUp
  • Next by Date: Re: newbie question regarding WOPopUp
  • Previous by thread: Re: newbie question regarding WOPopUp
  • Next by thread: Re: newbie question regarding WOPopUp
  • Index(es):
    • Date
    • Thread