Re: proper use of packages?
Re: proper use of packages?
- Subject: Re: proper use of packages?
- From: Chuck Hill <email@hidden>
- Date: Fri, 13 May 2005 09:42:12 -0700
The only xCode project I have worked on where these classes were in
packages. We did not use WOBuilder, so I can't tell you if what you
are seeing is normal or not. To import the Session in a package in a
WOComponent, IIRC, you need to use
import com.foo.*;
and not
import com.foo.Session;
WOBuilder is picky (buggy) about that.
Chuck
On May 12, 2005, at 5:15 PM, Will Norris wrote:
Well let me explain what I did and why did it, and then you tell me if
I did it the best way.
Per a suggestion in a previous email (from Chuck I think), I'm working
on moving all of my component subclasses into a custom package
(com.foo.components). When I did that, several errors popped up about
not finding the Session class. It was trying to "import Session;" to
no avail. Is it possible to import a class from the default package
into a class that is in a custom package?
I then decided I might as well moving Session into my custom packages
and placed it in com.foo; I subsequently added Application and
DirectAction here also. At this point the application launches just
fine, but WOBuilder shows no class variables for Application and
Session... it apparently doesn't like them being in packages. I
finally created new Session and Application classes in the default
package that simply extended com.foo.Session and com.foo.Application,
respectively, nothing more. Everyone is now happy.
Is this SOP or is there a way to get WOBuilder to see the Session and
Application classes in packages?
Many thanks,
Will
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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