packages and WOBuilder keys
packages and WOBuilder keys
- Subject: packages and WOBuilder keys
- From: "Richard L. Peskin" <email@hidden>
- Date: Fri, 18 Apr 2003 01:29:27 -0400
When I create a new WO application project with PB, I get basic
classes, Application and Session (and DirectAction) as defaults under
the Classes group. I also get a Web Components group which contains
Main (with Main.wo, Main.java, Main.api). Now if I open WO Builder
(double click Main.wo), I find two instance variables (keys);
application (instantiated by Application.java) and session. Both of
these are of type Application and Session respectively. It appears that
neither of these can be removed or replaced (i.e. I can't see how to do
it.).
Now assume I want to include my Application and Session classes in a
package (call it mypackage) by adding "package mypackage;" as the first
line in Application.java and Session.java. How do I get the instance
variables (application and session) in Main to reflect this package?
After I save my changes in Application.java and Session.java and go to
WO Builder, the class association under Main in the Main.wo window is
still Application, not mypackage.Application. (Same for session)
Yet somehow it can be done. If one looks at the WOExamples
(JavaWebObjectsExamples) and takes, for example, FileUpload, the
package name is "webobjectsexamples.fileupload" and the instance
variables for Main.wo are 'application --->
webobjectsexamples.fileupload.Application' (similar for session). While
this explains my previous question, namely why I couldn't change the
package name when I wanted to alter a WebObjects example, I can't
figure out how a consistent package structure was created for the
WOExamples.
What I want to do is create my own package structure similar to what
was done for the WebObjects examples. Can anyone help me out?
thanks,
--dick peskin
Richard L. Peskin, RLP Consulting, Londonderry, VT
http://www.rlpcon.com
http://www.caip.rutgers.edu/~peskin
_______________________________________________
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.