And what is this supposed "problem" with storing these values in an
NSArray of your component? You say you want to store them "somewhere"
in your component. A WO component is made up of HTML, WOD, WOO and a
Java class. So I would consider storing the list in an NSArray of the
component's Java class "somewhere" in the component.
That being said. Why do you need a dynamic component to store static
information. You could always just write the popup button in pure
static HTML. There's nothing stopping you from doing that. Of, course
it's going to be extra work on your part to get at that data from
your component's Java class. Something that WO component bindings
just nicely take care of for you.
On Nov 7, 2007, at 3:24 PM, Shagor Ghani wrote:
WOMasters,
I have a feeling this is a fairly basic WO question, so advanced
apologies if my hunch is correct.
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". 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 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? If I take the approach of a static
WOPopUpButton component, how would I access the selection in my code?
Thanks,
[EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/robert.walker%
40bennettig.com
This email sent to [EMAIL PROTECTED]
--
Robert Walker
[EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]