• 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
proper use of packages?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

proper use of packages?


  • Subject: proper use of packages?
  • From: Will Norris <email@hidden>
  • Date: Thu, 12 May 2005 19:15:22 -0500

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: proper use of packages?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Fetch Specs and Limits
  • Next by Date: Making changes to EO after validation?
  • Previous by thread: Re: 5.2.4 Release Notes - Where to Find?
  • Next by thread: Re: proper use of packages?
  • Index(es):
    • Date
    • Thread