Hi Fabian,

I missed the copy and paste, the rule is there:

100 : (task = 'edit' and propertyKey = 'isPerson') => componentName =
"AjaxObservingSwitch" [com.webobjects.directtoweb.Assignment]

I saved the html of the page and indeed it is lacking the
aboveDisplayPropertyKeys
section. How should I assure that the page is getting the correct
properties?

Angelo


2014-03-27 14:45 GMT-03:00 Fabian Peters <[email protected]>:

> 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 protected]>:
>
> > 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/lists.fabian%40e-lumo.com
> >
> > This email sent to [email protected]
>
>


-- 
Ângelo Andrade Cirino
[email protected]
31-3494-8642
31-9303-0695
MSN [email protected]
Skype aacirino
 _______________________________________________
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