• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxNotificationCenter and D2W clarification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxNotificationCenter and D2W clarification


  • Subject: Re: AjaxNotificationCenter and D2W clarification
  • From: Ângelo Andrade Cirino <email@hidden>
  • Date: Mon, 05 May 2014 01:27:31 -0300

Hi again,

I've been reading and trying to understand the "displayVariant" key as you suggested. From my observations of the generated pages, I need the "displayVariant" key in a "ERMODTabInspectPage" page. From all the inheritance of "ERMODTabInspectPage" it seems to implement the "displayVariant" key. Regarding "ERMDInspectPageRepetition", as you pointed, one would need to implement the key.

Since I am having recurring problems with my rules files and Eclipse trashing them, I can not be sure if my tentative implementation was flawed or if the rule (as I understood it) was not fired or read. I modified "ERMDInspectPageRepetition" to include the parsing of the "displayVariant" key and I included this rule as a test

100 : propertyKey = 'notes' => displayVariant = "omit" [com.webobjects.directtoweb.Assignment]

but it didn't work. Most probably I am missing something and it is not a rules file problem, despite my problems with Eclipse.

Would you share your insights and your implementation of the "displayVariant" key?

Eine schöne Woche,

Ângelo


2014-05-03 14:16 GMT-03:00 Fabian Peters <email@hidden>:
Hi Ângelo,

I'm afraid changing the displayPropertyKeys after the page has been generated, is asking too much. Usually I resort to using a tabbed or wizard-style interface. I've also implemented the "displayVariant" key as described in ERD2WPage, which allows you to simply hide attributes. In order to use that with ERModern, you need to modify the *InspectPageRepetition components. However, I don't think I've used it with AjaxNotificationCenter yet, and I'm not sure it'll work.

Fabian

Am 03.05.2014 um 18:27 schrieb Ângelo Andrade Cirino <email@hidden>:

> I am back to an issue with AjaxNotificationCenter, trying to understand its use. I've managed to correctly set it up in a D2W page and the delegate is being called as expected.
>
> The issue is that the page isn't refreshed, even tough the rules are fired and the delegate is called. I expected to be able to change the displayPropertyKeys rule according to the user selection of a boolean value, but the page isn't refreshed and so the change in displayPropertyKeys isn't applied.
>
> I've read and reread Ramsey's posts on the list about AjaxNotificationCenter and Fabian have helped me a lot, but I need further clarification on the use of AjaxNotificationCenter in D2W applications.
>
> I've attached a GoogleDrive file with the project hoping that someone will be able to help me figure out what I should do.
>
> Thanx,
>
> Angelo​
>  PartyEvaluation.zip
> ​
> _______________________________________________
> 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

References: 
 >AjaxNotificationCenter and D2W clarification (From: Ângelo Andrade Cirino <email@hidden>)
 >Re: AjaxNotificationCenter and D2W clarification (From: Fabian Peters <email@hidden>)

  • Prev by Date: Deployment application startup death for no apparent reason
  • Next by Date: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server
  • Previous by thread: Re: AjaxNotificationCenter and D2W clarification
  • Next by thread: Tabs in ERMODTabInspectPage not showing
  • Index(es):
    • Date
    • Thread