• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mixing D2JC with Non-Direct Java Client
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixing D2JC with Non-Direct Java Client


  • Subject: Re: Mixing D2JC with Non-Direct Java Client
  • From: David Avendasora <email@hidden>
  • Date: Thu, 26 Mar 2009 14:35:38 -0400


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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mixing D2JC with Non-Direct Java Client
      • From: John Ours <email@hidden>
References: 
 >Mixing D2JC with Non-Direct Java Client (From: David Avendasora <email@hidden>)
 >Re: Mixing D2JC with Non-Direct Java Client (From: John Ours <email@hidden>)
 >Re: Mixing D2JC with Non-Direct Java Client (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Mixing D2JC with Non-Direct Java Client
  • Next by Date: Re: WO is dead!
  • Previous by thread: Re: Mixing D2JC with Non-Direct Java Client
  • Next by thread: Re: Mixing D2JC with Non-Direct Java Client
  • Index(es):
    • Date
    • Thread