Re: cloning a WOComponent?
Re: cloning a WOComponent?
- Subject: Re: cloning a WOComponent?
- From: Urddh Huck <email@hidden>
- Date: Tue, 3 Dec 2002 16:29:41 -0800 (PST)
On December 3, 2002, Jonathan Rochkind wrote:
> Thanks; but it's not an issue of casting. The object
> returned is _not_ a MyComponent. A cast class raises
> an exception.
Does your component have a source file? Or does it
fail to compile the source file or include it in the
application JAR?
If it doesn't have a source file (or the subcomponent
class can't be found, even though the template may be
found), then it's treated as a template-only
WOComponent. The class of the component is
WOComponent.
Can you verify the class of the original component
that you're trying to clone? Where and how are you
creating the component and trying to clone it?
At 12/2/2002, Thomas Peters wrote:
>> You should be able to cast the resultant
>> WOComponent into your component MyComponent.
>>
>> maybe like this:
>>
>> MyComponent comp = new MyComponent();
>> MyComponent acomp = (MyComponent)comp.clone();
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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.