Re: Direct to Java Client and frameworks (reposted)
Re: Direct to Java Client and frameworks (reposted)
- Subject: Re: Direct to Java Client and frameworks (reposted)
- From: David Avendasora <email@hidden>
- Date: Sun, 1 Jan 2006 17:17:35 +0000
I am doing some D2JC stuff and I have not been able to get an app to
run at all under Java 1.5. I know that WO is really only supported on
Java 1.3.1.
I have had no problems with Java 1.4.2, but that is just anecdotal
and doesn't mean your app will run.
Dave
On Dec 27, 2005, at 4:42 PM, Jarvis Cochrane wrote:
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:
40avendasora.com
This email sent to email@hidden
_______________________________________________
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