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

Embedding D2W components in non-D2W applications


  • Subject: Embedding D2W components in non-D2W applications
  • From: Paul Hoadley <email@hidden>
  • Date: Tue, 2 Dec 2008 20:59:30 +1030

Hello,

I was hoping to experiment with using some D2W reusable components in a non-D2W application.  (Basically, I have some pages where I'm just doing very standard CRUD operations on EOs.  There's a lot of code repetition, and I figured D2W components might be a way to simplify this---am I on the right track?)

I just can't seem to get it off the ground.  On a page for editing Person EOs, I've stuck a D2WList just to see what happens:

    <webobject name="d2wlist" />

d2wlist : D2WList {
displayKeys = "(firstName, lastName)";
list = allPersons;
entityName = "AMPerson";
}

(Where allPersons is a method returning NSArray<Person>.)  On loading this page, I get a D2WModelException:

com.webobjects.directtoweb.D2WModelException: Error - could not find any rule that returns a pageName using the current context <D2WContext task=list, entity=AMPerson, propertyKey=null, pageConfiguration=null>

I've read the very brief section "Embedding Direct to Web Components" in the (old) Apple documentation, but it's a little brief on detail.  Can someone put me out of my misery and just show me the bare minimum requirements to embed a single D2WList in a non-D2W app like this?


-- 
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

  • Follow-Ups:
    • Re: Embedding D2W components in non-D2W applications
      • From: David Avendasora <email@hidden>
  • Prev by Date: Error with Cross-Model Relationship
  • Next by Date: Re: WebObjects in Xcode 3.1: where are the project templates?
  • Previous by thread: Re: Error with Cross-Model Relationship
  • Next by thread: Re: Embedding D2W components in non-D2W applications
  • Index(es):
    • Date
    • Thread