Embedding D2W components in non-D2W applications
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?
|
_______________________________________________
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