Re: file locations
Re: file locations
- Subject: Re: file locations
- From: Wes James <email@hidden>
- Date: Mon, 15 Nov 2004 16:22:44 -0700
On Sat, 13 Nov 2004 22:04:23 -0700, Brendan Duddridge
<email@hidden> wrote:
> Hi Wes,
>
>
>
>
> How would this be done with a D2WCustomComponent?
>
> I just created a dummy wocomponent with a woimage with no bindings,
> built and ran it. I changed the image field webassistant item to use
> a D2WCustomComponent with the Component name I just create. I got an
> exception error in the browser:
>
> Error:
> com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [
> takeValueForKey()]: attempt to assign value to unknown key: 'key'.
> This WOComponent does not have an instance variable of the name key or
> _key, nor a method of the name setKey or _setKey
>
> Here are the docs to do what you want with respect to creating your own
> custom DTW component. I did it with a simple boolean custom component:
>
> http://developer.apple.com/documentation/WebObjects/Developing_With_D2W/index.html
>
> Go to the section called Customizing a Direct To Web application, then
> click on Creating a Custom Property-Level Component.
>
> Hope that helps.
>
It does/did help! I had looked at this before, but it didn't make
sense. So I dug in a bit and I took the code in the example and
experimented with how it worked. I was able to update my test db with
the dropdown list. So I played around with the code to see how it
would work with a component with just a woimage in it and I now have
it working. Thanks a bunch!
wj
_______________________________________________
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