• 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: Overriding component in a framework ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding component in a framework ???


  • Subject: Re: Overriding component in a framework ???
  • From: LD <email@hidden>
  • Date: Fri, 2 Sep 2005 15:21:39 +1000

Hi there,

On 02/09/2005, at 3:09 PM, Peter Vandoros wrote:

I have recently turned an application into a framework with the hope of creating another application using the new framework as the base (extending Application, Session, etc... classes) and "overriding" some components to provide some customization for a client without affecting the main application (the new framework).

All seemed to go well until I tried to override one of these components.
It seems that my application is using the component template from the application but using the
java class from the framework rather than the applications java class.
<...>
After looking into this for some time I belive I have tracked it down to NSBundle searching the available packages in the wrong order.
When I print the application bundle I get something like this.
<com.webobjects.foundation.NSBundle name:'fooapplication' bundlePath:'C:\Projects\Fubar' packages:'("com.foo.components", "com.foo.bar.components")' 256 classes >

So, you're attempting to use the component in a component (e.g., Main.wod)...


ATestComponent: TestComponent {
    aBinding = someBinding;
    /* etc */
}

Try being more specific...
ATestComponent: com.foo.bar.components.TestComponent {
    aBinding = someBinding;
    /* etc */
}

with regards,
--

LD


_______________________________________________ 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
References: 
 >Overriding component in a framework ??? (From: Peter Vandoros <email@hidden>)

  • Prev by Date: Re: Overriding component in a framework ???
  • Next by Date: Re: Overriding component in a framework ???
  • Previous by thread: Re: Overriding component in a framework ???
  • Next by thread: PDF IE & filedownload
  • Index(es):
    • Date
    • Thread