Helo Dave:
Yes and no. What I´m meant is that I could move them but without
using the rule machine. This is how:
- 1st: All my D2JC screens using the Assistant (in WO 5.3) I
freezed them in a XML file. The ones that already have been freezed,
no modification was done.
- 2d: I develop a class called MyControllerFactory that work similar
as the EOControllerFactory class but without calling the rule
machine. This is how it works:
+ This class (in the client side) calls the server to get the
XML file of the WOComponent that I want to show.
+ With the XML file, the MyControllerFactory class parse it and
instantiated the D2J classes (EOFormController, EOListController,
EOTextFieldController, etc.) programatically (see the JCEntityViewer
example if you need more detail).
- 3rd: Show the root controller as a Window or Modal screen.
So far it worked ok, but I have not tested with all D2J classes.
note: I have to develop some minor additions:
(a) Need to subclass the EOFormController and EOListController to
catch the defaultActions() method in order NOT to go to the ruler
machine and return the NSArray of EOActions statically.
(b) With these two subclasses I have to override some methods (i.e.,
OpenWithTask, InsertWithTask and insert) in order to do the actual
operation without the rule machine.
Result: All the D2J screens keep the same. What I throw away was the
rule machine (too complicate and time consuming for me to simulate
its operation). The migration for existing D2J system was not so
hard since we did not use the rule machine very much.
The rule machine some how gave you the screen flow between D2J
screens; this flow you have to re-code and you could do it in many
ways (i.e., in the client (e.g, I add extra tag in the
EOFormController called 'nextTask') or in the server).
I hope these ideas could help you.
Ricardo.
From: David Avendasora <[EMAIL PROTECTED]>
Date: February 21, 2008 12:45:32 PM GMT-06:00
To: Ricardo Legorreta <[EMAIL PROTECTED]>
Cc: [email protected]
Subject: Re: Why I hate Java Client
Hey Ricardo,
I'd like to move to WO 5.4, but my core application is D2JC right
now. I'm planning on moving it straight JC using Flor's JBND
framework in the near future, but I'm stuck with it for now.
Can you get D2JC apps to work with 5.4 by bringing over the 5.3
D2JC classes? If so, how?
Thanks,
Dave
On Feb 21, 2008, at 12:58 PM, Ricardo Legorreta wrote:
More to JC in my case for simple screen I´m still using the D2JC
controllers classes programatically with WO 5.4.1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]