Re: WO and Java 'packages'?
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.