• 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: WO and Java 'packages'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO and Java 'packages'?


  • Subject: Re: WO and Java 'packages'?
  • From: Chris Pavicich <email@hidden>
  • Date: Thu, 22 Apr 2004 00:41:01 -0400

You DO NOT need to use the fully qualified path in pageWithName() calls, the
WO components are loaded by the resource loader in WO just the same as
always.


You DO NOT need to use fully qualified classes in your WOD bindings


Okay. I want to clarify this a bit, since it caused me a great deal of pain and anguish when I ran into it.


Dov is right, do not NEED to use fully qualified classes, but... it might be a good idea to use them anyway.

The issue we ran into was this:

We had two components named DateComponent. The components themselves had different API, were developed for (slightly) different purposes,
by different folks, for two different applications.


One was defined in framework Foo (com.wdpro.foo) and the other in framework Bar (com.wdpro.bar).

When we went about re-organizing our code into packages, one of our applications needed to use both
the Foo and Bar packages. On one of the pages in this app, I needed to use the DateComponent.


So, I wrote my code using pageWithName("DateComponent") as I always had. This generated lots of compiler errors.

Why?

Because the wrong DateComponent was being used. The "RIGHT" one happened to be in the search path after the "WRONG" one.

So, the moral of the story is, you don't HAVE to use fully qualified names, but it might help ease some confusion, IF
there is the potential for name conflicts.


HTH, I apologize for giving bad advice earlier.

--CMP






You DO need to fully qualify your classes in EOModeler




--
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.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.
_______________________________________________
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: 
 >Re: WO and Java 'packages'? (From: Dov Rosenberg <email@hidden>)

  • Prev by Date: Re: Question for the Java Gurus
  • Next by Date: Re: Question for the Java Gurus
  • Previous by thread: Re: WO and Java 'packages'?
  • Next by thread: Re: WO and Java 'packages'?
  • Index(es):
    • Date
    • Thread