Re: Accessing a D2WContext from a non-D2W Component
Re: Accessing a D2WContext from a non-D2W Component
- Subject: Re: Accessing a D2WContext from a non-D2W Component
- From: Ramsey Gurley <email@hidden>
- Date: Wed, 02 Nov 2011 18:05:06 -0700
So you want to click something in the inspect page, have it reload the current page or do some kind of ajax update, and do so with new displayPropertyKeys?
You could do something like that with a custom ERDActionButton or with a branch delegate. In either case, you could reach out to context().page() and set whatever you want there or set something on the session to let the outer page know about the change. ERXThreadLocal would probably work too.
Sorta hard to say without more specific info though.
Ramsey
On Nov 2, 2011, at 5:48 PM, Lon Varscsak wrote:
> Well, in one situation I want to manipulate displayPropertyKeys
> without having to create a bunch more rules (I feel like I'm
> duplicating code when I do that). I'm pretty sure I'm fighting the
> framework on this one and need to just drink the rule cool-aid
> (regardless of whether it creates more work for someone later on :P).
>
> -Lon
>
> On Wed, Nov 2, 2011 at 5:34 PM, Ramsey Gurley <email@hidden> wrote:
>> Hi Lon,
>>
>> It doesn't look like that class has a D2W context at all. It basically just wraps a D2W page component with a switch. You could create a new context and give it the same pageConfiguration and object, but I'll guess you want something else. What are you trying to determine from the nested component's d2wContext?
>>
>> Ramsey
>>
>>
>> On Nov 2, 2011, at 5:02 PM, Lon Varscsak wrote:
>>
>>> Is there a way to access the D2WContext in a non-D2W component that
>>> contains a D2W component such as ERXD2WInspect?
>>>
>>> Thanks,
>>>
>>> Lon
>>> _______________________________________________
>>> 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