On Mar 26, 2009, at 2:01 PM, David Avendasora wrote:


On Mar 26, 2009, at 1:47 PM, John Ours wrote:


On Mar 26, 2009, at 10:28 AM, David Avendasora wrote:

Hi John, Flor, other WO JC developers

I have added some things to my Client-Side EOGenericRecord class that I think will allow for _very_ easy integration of D2JC features (lists and forms) to any time of WO Java Client app. But since I don't do any non-direct development, maybe one of you can try them out.


Just for kicks I wired this in at lunch. Everything seems to initialize properly, the EOFormController is created and all, but it doesn't show at the .makeVisible() call. I'll dig a little bit...what should I be expecting from this? A new JFrame? Or something else?

I believe so. In my D2JC app, I get a new window with the form in there. I'm assuming it's a JFrame, but then again, I've never written a single line of Swing, so I can only guess at what WebObjects is doing behind the scenes to do this.

Now that I think about it... do you have a user.d2wmodel file? If not, maybe instead throwing an error or guessing if it can't find the "FormTask" for the Entity you specified, it just doesn't do anything.

Try creating a user.d2wmodel file using the following as the contents and change the "MyEntity" to match your MyEO.ENTITY_NAME.

Dave

{
        "rules" = (
                {
                        "class" = "com.webobjects.directtoweb.Rule";
                        "author" = "100";
                        "rhs" = {
                                "class" = 
"com.webobjects.directtoweb.Assignment";
                                "value" = ();
                                "keyPath" = "enumerationEntityNames";
                        };
                },
                {
                        "class" = "com.webobjects.directtoweb.Rule";
                        "author" = "100";
                        "rhs" = {
                                "class" = 
"com.webobjects.directtoweb.Assignment";
                                "value" = (
                                        "MyEntity"
                                );
                                "keyPath" = "mainEntityNames";
                        };
                }
        );
}
 _______________________________________________
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]

Reply via email to