Hi Ramsey, Thank you very much for the help. Indeed I should have take a deeper look at the source. The heading for ERDList.java does not give this hint, it lacks this specific binding:
/** * Used to edit a toMany relationship by allowing the user to pick the eos that belong in the relationship.<br /> * * @binding object * @binding key * @binding emptyListMessage * @binding listPageConfiguration * @binding list * @d2wKey createButtonComponentName * @d2wKey useNestedEditingContext */ I had already read the source but missed it. Perhaps the useCreationDelegate binding should de included in the class doc. BTW, the showActions binding should be inferred or included in the class documentation? Unfortunately I can not answer if it solved my problem or not. Again my delegate was not called, but I do not know why due to an EO exception and I can not trace nor debug the code. What I am trying to do is to create an entity in the end of a chain of relationships and then, as needed, create the parent entities. But it seems that the D2W engine tries to create the final entity before my delegate is called, where I hoped to have the chance to set up the parent relationship. It seems that I will have to think of another way to accomplish this. Angelo 2012/9/27 Ramsey Gurley <[email protected]> > Use the source Luke :-) > > I see yet another rule you need to enable it: useCreationDelegate. Looks > like you need a rule to set that to true, or else you end up on an edit > relationship page. > > Ramsey > > On Sep 27, 2012, at 12:06 PM, Ângelo Andrade Cirino wrote: > > > Hi Ramsey, > > > > When I click the "Create" button below the ERDList component, the > component takes me to a new page with the buttons Return, Search and New. > When I click the New button the createObjectDelegate isn't called. > > > > Angelo > > > > 2012/9/27 Ramsey Gurley <[email protected]> > > > > On Sep 27, 2012, at 9:12 AM, Ângelo Andrade Cirino wrote: > > > > > Hi all, > > > > > > I have this rule: > > > > > > 100 : entity.name = 'Person' => createObjectDelegate = > "com.visionar.visiontur.delegates.CreatePersonDelegate" > [er.directtoweb.ERDDelayedObjectCreationAssignment] > > > > > > I can confirm that it is set when I inspect the D2W rules, but it is > not called. What am I missing? > > > > > > Angelo > > > > The only thing that's going to fire the createObjectDelegate is an > ERDList when you click the create button. If you have any rule for > createButtonComponentName, that button will not be shown. If you don't have > a rule for showActions, it will never be shown. If you are not using an > ERDList, that delegate rule will never be fired. > > > > Ramsey >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
