Hi,

I am trying to implement a change in the display properties of an entity
depending upon the selection of a ERD2WCustomEditBoolean, but the delegate
isn't called. These are the rules

100 : (task = 'edit' and pageConfiguration = 'CreatePartyNI') =>
propertyChangedDelegate = "delegates.isPersonChangeDelegate"
[ERDDelayedObjectCreationAssignment]
100 : (task = 'edit' and propertyKey = 'isPerson') => customComponentName =
"ERD2WCustomEditBoolean" [com.webobjects.directtoweb.Assignment]
100 : pageConfiguration = 'CreatePartyNI' => aboveDisplayPropertyKeys =
("ajaxNotificationCenter") [com.webobjects.directtoweb.Assignment]
100 : propertyKey = 'ajaxNotificationCenter' => componentName =
"AjaxNotificationCenter" [com.webobjects.directtoweb.Assignment]

For now the delegate is simply this

package delegates;


import com.webobjects.directtoweb.D2WContext;

import com.webobjects.foundation.NSArray;

import com.webobjects.foundation.NSLog;


import er.ajax.look.interfaces.PropertyChangedDelegate;


public class isPersonChangeDelegate implements PropertyChangedDelegate {


 @Override

public NSArray<String> propertyChanged(D2WContext context) {

NSLog.out.appendln("********* isPersonChangeDelegate called");

return null;

}

 }

By inspecting the D2W properties I can confirm that all the rules and
properties are correctly set up. Inspecting the HTML I can see the
javascript function and it is correctly called when the selection is
changed. But I can't see what is my mistake that the delegate isn't called.

Angelo
 _______________________________________________
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]

Reply via email to