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 protected]>:

> 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 protected]>:
>
> > 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 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]
>
>
 _______________________________________________
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