Re: isEntityDeletable being cached in D2WContext in ERMODListPage
Re: isEntityDeletable being cached in D2WContext in ERMODListPage
- Subject: Re: isEntityDeletable being cached in D2WContext in ERMODListPage
- From: Freddie Tilley <email@hidden>
- Date: Fri, 22 Apr 2011 11:59:53 +0200
When tracing the isEntityDeletable rule, I get
DEBUG er.directtoweb.rules.isEntityDeletable.fire (MyClass) - CANDIDATES for keyPath: isEntityDeletable ... once, also showing my delayed boolean assignment rule
DEBUG er.directtoweb.rules.isEntityDeletable.fire (MyClass) - FIRE: isEntityDeletable for propertyKey: null depends on ... happens once
however DEBUG er.directtoweb.rules.DelayedBooleanAssignment (MyClass) - Resolving delayed fire for boolean conditions: ... does fire every time I enter the page, but
with no effect.
Freddie
On 21 apr 2011, at 17:20, David LeBer wrote:
>
> On 2011-04-21, at 11:05 AM, Ramsey Gurley wrote:
>
>> Create a logger for isEntityDeletable and see when the rule is firing/caching.
>>
>> http://wiki.objectstyle.org/confluence/display/WO/How+to+debug+a+D2W+application
>>
>> Add
>>
>> log4j.logger.er.directtoweb.rules.ERD2WTraceRuleFiringEnabled = DEBUG
>
> You can do that easily while your app is in development by enabling the D2W debugging info on your page (Using the D2W link in the ERD2WDebugFlags block) and then clicking the Rule Tracing: Turn <on> link.
>
>>
>> to your properties file. Once you've done that, you can create the rule logging properties really easily on your app's log4j page.
>>
>> .../YourApp.woa/wa/ERXDirectAction/log4j
>>
>> Ramsey
>>
>> On Apr 21, 2011, at 4:16 AM, Freddie Tilley wrote:
>>
>>> Hi,
>>>
>>> I'm using D2W with the ERModernLook framework. When displaying items in a list page I use a ERDDelayedBooleanAssignment with a conditionKey of session.isAdmin to set the isEntityDeletable property.
>>>
>>> Logging into the site as an either an admin or a regular user will set the isEntityDeletable property, but after logging in as a different user type the settings of the previous user type remain in the d2w context. Clearing the d2w cache does set the values to the correct property.
>>>
>>> What can I do to resolve this issue?
>>>
>>> Thank you,
>>> Freddie Tilley
>
> ;david
>
> --
> David LeBer
> Codeferous Software
> 'co-def-er-ous' adj. Literally 'code-bearing'
> site: http://codeferous.com
> blog: http://davidleber.net
> profile: http://www.linkedin.com/in/davidleber
> twitter: http://twitter.com/rebeld
> --
> Toronto Area Cocoa / WebObjects developers group:
> http://tacow.org
>
>
>
>
> _______________________________________________
> 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