Re: Best practice for dummy empty option in a WOPopupButton
Re: Best practice for dummy empty option in a WOPopupButton
- Subject: Re: Best practice for dummy empty option in a WOPopupButton
- From: David LeBer <email@hidden>
- Date: Wed, 27 Feb 2008 10:01:06 -0500
On 27-Feb-08, at 9:53 AM, Archibal Singleton wrote:
Hi everybody,
I was wondering what would be the best way to solve the following
recurring problem:
You want to present a user with a list of options, using a
WOPopUpButton. Typically those options are some kind of EO.
By default, the first time the list is presented, the selected
(ideally the first item on the list) option would a *place holder*
to indicate that no actual option is selected.
Now my question is how best to implement this?
The idea is that the dummy place holder is just be an artifact of
the view.
But the WOPopUpButton iterates over a list of EOs so the dummy
option should somehow be a dummy EO in that list and be handled
correctly in various places (check for the selection, preventing
from saving the dummy EO, etc) which makes it hard to prevent it
from polluting my code beyond the view level.
So I'm curious to know how you guys deal with this "problem"?
Many thanks for any insight.
the 'noSelectionString' binding doesn't do what you want?
<http://developer.apple.com/documentation/WebObjects/Reference/DynamicElements/WOPopUpButton/chapter_25_section_3.html
>
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
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