WOPopUp and NSMutableDictionary
WOPopUp and NSMutableDictionary
- Subject: WOPopUp and NSMutableDictionary
- From: Hunter Hillegas <email@hidden>
- Date: Tue, 27 Apr 2004 16:13:07 -0700
I have an array of NSMutableDictionaries. Each NSMutableDictionary
contains two keys, rating_id and rating_text. I have the bindings for
the popup set as follows:
PoolRatingPopup: WOPopUpButton {
class = "txt2";
displayString = theCurrentPoolRating.rating_text;
item = theCurrentPoolRating;
list = application.ratingsList;
selection = theHotelRating.poolRating;
value = theCurrentPoolRating.rating_id;
}
theCurrentPoolRating is of type NSMutableDictionary. The binding for
'selection' is a string in my 'HotelRating' object...
This renders the HTML I would expect but it seems that when I submit,
WO doesn't attempt to insert 'value' into 'theHotelRating.poolRating',
it instead inserts the item binding, which is NSMutableDictionary, not
String...
So, how can I get WO to submit the value of the key, as in
theCurrentPoolRating.rating_id, to theHotelRating.poolRating?
Is that possible?
Thanks,
Hunter
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.