Re: AjaxNotificationCenter problem
Re: AjaxNotificationCenter problem
- Subject: Re: AjaxNotificationCenter problem
- From: Fabian Peters <email@hidden>
- Date: Thu, 27 Mar 2014 18:45:23 +0100
Hi Angelo,
It seems you're missing the rule for the AjaxObservingSwitch component, that wraps the component you specify via "customComponentName":
100 : (task = 'edit' and propertyKey = 'isPerson') => componentName = "AjaxObservingSwitch" [com.webobjects.directtoweb.Assignment]
Also, make sure there actually is an "aboveDisplayPropertyKeys" section on the page level. It's missing from some modern look components.
Fabian
Am 27.03.2014 um 18:20 schrieb Ângelo Andrade Cirino <email@hidden>:
> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
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