Hi Scott, Firstly while creating a Custom Component I believe you have created it as a partial document. If so then you must have provided a binding which you must have specified. Now in the Custom DropDown Component you also should have written get-set methods to accept the values. If that is not the case please let me know. Now coming back to your queries#1 you should bind the selected binding of your Custom Component to a dummy reciever object which is of the same type as that of the objects present in each row Array of the Array. So the user will now be selecting an Object instead of a value. Now with the selected Object you can easily go ahead and extract the value that you require.
Let me know if that solves your problems. Thanks, Tanmoy On 4/26/06, Scott Winn <[EMAIL PROTECTED]> wrote: > Hi WOList, > > I am relatively new to WebObjects (and Java for that matter). > > I am trying to create a reusable component that is essentially a > WOPopUpButton with a custom fetch that generates the list attribute. > That part is working. When I put this component in a page, it will > be used to edit a relationship attribute of the Object the page is > displaying. I am not using WOToOneRelationship because of the custom > fetch logic. > > I have two problems. . . > > 1) I have the Object on an EditObject page, and I want to tell the > Custom Pop-up Component to "select" the current value that is part of > that Object (see option 3 below). > > <select> > <option value="1">A Value</option> > <option value="2">A Value</option> > <option value="3" selected="selected">My Object's Value</option> > <option value="4">A Value</option> > </select> > > I have no idea how to get WO to put selected="selected" on correct > list option. > > 2) Since it is a custom object and has no default bindings, I don't > how or what to hook it to on my EditObject page so that the Object > will get the user selected value when I save it. > > I have preformed due diligence trying to find my own answer, but all > the info I could find either didn't seem to apply, or I just didn't > understand it. Any and all help is appreciated. > > Scott > _______________________________________________ > 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/tanmoy.roy%40gmail.com > > This email sent to [EMAIL PROTECTED] > -- Best, Tanmoy _______________________________________________ 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