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      (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 archive@mail-archive.com

Reply via email to