Do you have a .d2wmodel file in your project that has the appropriate
rule in it for the list function of the AMPerson entity?
Dave
On Dec 2, 2008, at 5:29 AM, Paul Hoadley wrote:
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 (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]