• 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: WOPopupButton and optgroup, how to?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOPopupButton and optgroup, how to?


  • Subject: Re: WOPopupButton and optgroup, how to?
  • From: Sam Barnum <email@hidden>
  • Date: Tue, 18 Jan 2005 08:55:42 -0800

No, you'd want to roll your own component for that. I've thought about doing this in the past, but browser support for optgroup isn't so great, I usually end up using multiple pulldowns instead.

Some different ways of setting up the bindings for this:
Create a binding which accepts an NSDictionary of arrays. The keys in the dictionary could be used as the group values. The values for each key are the selectable <option> tags.


Then check out the WXPopUpButton example, at /Developer/Examples/JavaWebObjects/Frameworks/WOComponentElements/ WXPopUp.wo

This will give you an idea of how to set up the dynamic elements to process the values.

Good luck!

Sam Barnum
360 Works
http://www.360works.com
415.929.7318


On Jan 18, 2005, at 7:36 AM, Dev WO wrote:

Hi all,
I've been searching all the different archive and couldn't find a clue on this one.
Is there any way to make a WOPopupButton in a form and having some information grouped using the <optgroup> tag?


Thanks a lot for your input.

Xavier

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


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
References: 
 >WOPopupButton and optgroup, how to? (From: Dev WO <email@hidden>)

  • Prev by Date: Re: Eclipse and WO
  • Next by Date: Re: Eclipse and WO
  • Previous by thread: WOPopupButton and optgroup, how to?
  • Next by thread: Connecting to DB2
  • Index(es):
    • Date
    • Thread