Direct to Java Client and frameworks (reposted)
Direct to Java Client and frameworks (reposted)
- Subject: Direct to Java Client and frameworks (reposted)
- From: Jarvis Cochrane <email@hidden>
- Date: Wed, 28 Dec 2005 00:42:44 +0800
Hi,
Sorry to re-post this, but I've gone over and over Apple's
documentation, and searched and searched the mailing list archives...
I think I'm doing everything right according to the dox, but get an
IlleganStateException when attempting to load the .nib archive.
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalStateException: Could not load archive named
djcdemo.client.JobFormInterfaceController
at com.webobjects.eoapplication.EOArchive.loadArchiveNamed
(EOArchive.java:309)
I'm trying to mix a static .nib file with a direct to java client
application. WO 5.3.1, Java 1.5, OS X 10.4.3.
Does anyone have some sample code for this kind of a direct to java
client application that they wouldn't mind sharing?
Yours hopefully,
Jarvis
Begin forwarded message:
From: Jarvis Cochrane <email@hidden>
Date: 3 October 2005 6:28:24 PM
To: email@hidden
Subject: Direct to Java Client and frameworks
Hello,
I'm trying to get my head around Direct to Java Client...
I've created a Framework to contain my EOModel and classes and
associated logic. I would like to create a direct to java client as
a separate project, which references the framework.
I'm trying to factor my "business logic" out into a framework that
doesn't need to know anything about direct to java or web pages or
any of that stuff!
Initially things worked ok - the d2jc application would allow me to
create data records, and perform searches, and so on.
The next step was to add an awakeFromInsertion() method on one of
the classes in my framework to supply default values for
properties. This doesn't appear to be being invoked on the client
(no default values), but is invoked on the server when the client
saves the data record (which means that it changes the value that
user has entered!).
I've tried reading Apple's documentation, but I can't make head nor
tail of it - at least where this issue is concerned.
So... How do you set up a d2jc project / application to say "use
the model and classes from this framework", and "use the server
side method in preference to a local method"?
Hoping someone can help,
jarvis
_______________________________________________
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