Re: subclassing WODisplayGroup
Re: subclassing WODisplayGroup
- Subject: Re: subclassing WODisplayGroup
- From: Tom Woteki <email@hidden>
- Date: Fri, 2 Jan 2004 15:43:48 -0500
I was hopeful George's suggestion would work but it doesn't. When the
enclosing component loads the following exception is thrown:
"... java.lang.IllegalArgumentException] While trying to set the field
"myDisplayGroup" on an object of type Main we expected a
my.package.name.MyDisplayGroup but received a
com.webobjects.appserver.WODisplayGroup with a value of" etc....
Declaring myDisplayGroup private and providing a setter method and
other variations on these themes produce either the exception above or
class cast exceptions.
Any other ideas?
Thanks
Tom
On Jan 2, 2004, at 10:24 AM, George Domurot wrote:
> Tom:
>
> If you cast the variable back to a WODisplayGroup, you shouldn't have
> any problem with WOBuilder.
>
> protected MyWODisplayGroup displayGroup;
>
> public WODisplayGroup displayGroup(){
> return (WODisplayGroup)displayGroup;
> }
>
> On Jan 1, 2004, at 12:11 PM, Tom Woteki wrote:
>
>> I would like to be able to subclass WODisplayGroup such that the
>> "Display Group Options" configuration panel in WOBuilder is still
>> available for any component that uses my subclass and such that the
>> framework automatically initializes an instance of my subclass the way
>> it can a WODisplayGroup.
<snip>
>>
>> Is what I am attempting possible, and if so how to do it?
_______________________________________________
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.