Hi Fabian,

I turned on rule tracing in my properties file with

er.directtoweb.rules.ERD2WTraceRuleFiringEnabled=Debug

And also with the D2W loj4j in my application, but no rule was logged.
Should I also change the ERDirectToWeb page wrapper as stated in this post?

http://www.mail-archive.com/webobjects-dev%40lists.apple.com/msg26207.html

If so, which component?

Thanx

Angelo


2014-03-28 6:05 GMT-03:00 Fabian Peters <[email protected]>:

> Hi Angelo,
>
> I'd turn on debug logging on your AjaxNotificationCenter class. Successful
> handling of a change looks something like this:
>
> (CreatePerson) Removing observers for old context
> (CreatePerson) Notifications registered for context: <D2WContext
> task=edit, entity=Person, propertyKey=ajaxNotificationCenter,
> pageConfiguration=CreatePerson>
> (CreatePerson) Updating container IDs:
> (CreatePerson) ID registered for property: (isFemale,
> e_0_3_3_1_2_3_0_1_0_0_3_3_5_0_1_0_1_3_0_1_1_3_1_12)
> (CreatePerson) ID registered for property: (salutation,
> e_0_3_3_1_2_3_0_1_0_0_3_3_5_0_1_0_1_3_1_1_1_3_1_12)
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Notifications registered for context: <D2WContext task=edit,
> entity=Person, propertyKey=ajaxNotificationCenter,
> pageConfiguration=CreatePerson>
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Notifications registered for context: <D2WContext task=edit,
> entity=Person, propertyKey=ajaxNotificationCenter,
> pageConfiguration=CreatePerson>
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Notifications registered for context: <D2WContext task=edit,
> entity=Person, propertyKey=ajaxNotificationCenter,
> pageConfiguration=CreatePerson>
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Property changed for property key: isFemale
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Updating container id list with propertyChangedDelegate
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Container ids to be updated:
> e_0_3_3_1_2_3_0_1_0_0_3_3_5_0_1_0_1_3_1_1_1_3_1_12
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Notifications registered for context: <D2WContext task=edit,
> entity=Person, propertyKey=ajaxNotificationCenter,
> pageConfiguration=CreatePerson>
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Updating container IDs:
> e_0_3_3_1_2_3_0_1_0_0_3_3_5_0_1_0_1_3_1_1_1_3_1_12
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Notifications registered for context: <D2WContext task=edit,
> entity=Person, propertyKey=ajaxNotificationCenter,
> pageConfiguration=CreatePerson>
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Updating container IDs:
> Page: com.elumo.d2w.pages.ELWizardCreationPage - Configuration:
> CreatePerson Notifications registered for context: <D2WContext task=edit,
> entity=Person, propertyKey=ajaxNotificationCenter,
> pageConfiguration=CreatePerson>
>
> Fabian
>
> Am 27.03.2014 um 23:50 schrieb Ângelo Andrade Cirino <[email protected]>:
>
> > Hi Fabian,
> >
> > I indeed noticed that the only modern look component, or page, that has
> an aboveDisplayPropertyKeys component is ERMODEditRelationshipPage.wod.
> Since I am only working with modern look I am willing to add to its
> components two ERD2WExtraDisplayPropertyKeysComponent in each one, as in
> the neutral look, and also add the Brazilian Portuguese localization. Is
> this an acceptable pull?
> >
> > I did add the above and below ERD2WExtraDisplayPropertyKeysComponent
> components to my local modern look and built the application. Unfortunately
> my issue remains, the delegate isn't called. Just to ensure you that it
> seems that I am doing the right thing, here follows the rules and a screen
> capture showing the properties and components:
> >
> > Just to ensure you that it seems that I am doing the right thing, this
> are my rules:
> >
> > 100 : (task = 'edit' and entity.name = 'PartyNI') =>
> aboveDisplayPropertyKeys = ("ajaxNotificationCenter")
> [com.webobjects.directtoweb.Assignment]
> > 100 : (task = 'edit' and pageConfiguration = 'CreatePartyNI') =>
> propertyChangedDelegate = "delegates.isPersonChangeDelegate"
> [ERDDelayedObjectCreationAssignment]
> > 100 : (task = 'edit' and propertyKey = 'isPerson') => componentName =
> "AjaxObservingSwitch" [com.webobjects.directtoweb.Assignment]
> > 100 : (task = 'edit' and propertyKey = 'isPerson') =>
> customComponentName = "ERD2WCustomEditBoolean"
> [com.webobjects.directtoweb.Assignment]
> > 100 : propertyKey = 'ajaxNotificationCenter' => componentName =
> "AjaxNotificationCenter" [com.webobjects.directtoweb.Assignment]
> >
> > and I made a screen capture of the D2W properties and their values
> regarding this issue:
> >
> > <capture.png>
> >
> > The only log message I get when I change the observed component status
> is this:
> >
> > DEBUG NSLog Page: er.modern.look.pages.ERMODWizardCreationPage -
> Configuration: CreatePartyNI - takeValuesFromRequest() Warning: Avoid using
> the 'value' binding as it is much slower than omitting it, and it is just
> cosmetic.
> >
> > Cheers,
> >
> > Angelo
> >
> >
> > 2014-03-27 19:11 GMT-03:00 Fabian Peters <[email protected]>:
> > Hi Angelo,
> >
> > I've an open pull request for that: <
> https://github.com/wocommunity/wonder/pull/497>
> >
> > Fabian
> >
> > Am 27.03.2014 um 21:28 schrieb Ângelo Andrade Cirino <[email protected]
> >:
> >
> > > 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
> >
> >
> >
> >
> > --
> > Ângelo Andrade Cirino
> > [email protected]
> > 31-3494-8642
> > 31-9303-0695
> > MSN [email protected]
> > Skype aacirino
>
>


-- 
Â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