newbie question regarding WOPopUp
newbie question regarding WOPopUp
- Subject: newbie question regarding WOPopUp
- From: Timmy <email@hidden>
- Date: Tue, 30 May 2006 11:15:25 -0700
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,
Tim
_______________________________________________
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