• 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: Static component question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static component question


  • Subject: Re: Static component question
  • From: Guido Neitzer <email@hidden>
  • Date: Wed, 7 Nov 2007 14:29:57 -0700

On 07.11.2007, at 13:24, Shagor Ghani wrote:

Basically, I'm looking to populate a pulldown menu, inappropriately titled WOPopUpButton in WOBuilder, with a set of values, e.g. "Red", "Blue", and "Green".

These are named appropriately if you're not looking from a Windows perspective. A dropdown or pulldown window on the Mac is something that drops down from the menu bar - not a button where you click on and it pops up ...


But anyway.

Problem is, I don't want to accomplish this by building an NSArray of Strings with these values and then binding the NSArray to the 'list' attribute in the

May I ask why?

WOPopUpButton. Is there a better way to do this whereby I don't have to store these values in code, DB, etc, but directly in my HTML or somehow in the component itself?

Don't create a WOPopupButton but a normal input element (select) as you like it, give it a name, and get the value with "context().request().formValueForKey(name)".


If I take the approach of a static WOPopUpButton component, how would I access the selection in my code?

There is no "static" WOPopupButton - it is always a "dynamic element".

cug
--
http://www.event-s.net

_______________________________________________
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: 
 >Static component question (From: "Shagor Ghani" <email@hidden>)

  • Prev by Date: Re: Slogan
  • Next by Date: Re: Static component question
  • Previous by thread: Static component question
  • Next by thread: Re: Static component question
  • Index(es):
    • Date
    • Thread