• 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: Embedding D2W components in non-D2W applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding D2W components in non-D2W applications


  • Subject: Re: Embedding D2W components in non-D2W applications
  • From: Paul Hoadley <email@hidden>
  • Date: Wed, 3 Dec 2008 08:00:24 +1030

On 03/12/2008, at 6:18 AM, David Holt wrote:

Sorry, I misread. I created a Wonder project, not a Wonder D2W project.

That's ideal.  I'm trying to use D2WList in a normal app.  I just started a Wonder D2W app to see what it looked like.

I just did the same to see what steps are necessary:

1. Create project
2. Add the following frameworks: JavaDirectToWeb, JavaDTWGeneration, JavaEOProject
3. Add your D2WList to the Main component below "Hello World"
4. Bind entityName to your EO (I used "Registrant")
5. Bind list to an array of your EO's. 
6. Optionally set your displayKeys

<wo:D2WList entityName = "Registrant" list = "$registrantList" displayKeys = "(firstName,lastName)" />

I used the WonderEntity eogenerator templates and the following method: 

/**
* @return the registrantList
*/
public NSArray<Registrant> registrantList() {
return Registrant.fetchAllRegistrants(session().defaultEditingContext());
}

That's all I did. There were no rule files or rules required.

Thanks David.  It's useful to have confirmation that it just works.  I'll press on.


-- 
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


 _______________________________________________
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

References: 
 >Embedding D2W components in non-D2W applications (From: Paul Hoadley <email@hidden>)
 >Re: Embedding D2W components in non-D2W applications (From: David Avendasora <email@hidden>)
 >Re: Embedding D2W components in non-D2W applications (From: Paul Hoadley <email@hidden>)
 >Re: Embedding D2W components in non-D2W applications (From: Paul Hoadley <email@hidden>)
 >Re: Embedding D2W components in non-D2W applications (From: David Holt <email@hidden>)

  • Prev by Date: Re: Embedding D2W components in non-D2W applications
  • Next by Date: DTD from Apple
  • Previous by thread: Re: Embedding D2W components in non-D2W applications
  • Next by thread: Re: Embedding D2W components in non-D2W applications
  • Index(es):
    • Date
    • Thread