• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: subclassing WODisplayGroup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >subclassing WODisplayGroup (From: Tom Woteki <email@hidden>)
 >Re: subclassing WODisplayGroup (From: George Domurot <email@hidden>)

  • Prev by Date: Fwd: Advice on dynamic graphics with WO
  • Next by Date: Turn Off Image Display in WOBuilder
  • Previous by thread: Re: subclassing WODisplayGroup
  • Next by thread: Re: can I use fetch spec to filter an array?
  • Index(es):
    • Date
    • Thread