Re: isEntityDeletable being cached in D2WContext in ERMODListPage

2011-04-27 Thread Freddie Tilley
I found the cause of the problem:

The actions key for the list page cached the results of the 
isEntityDeletable/isEntityEditable rule in a dictionary with the following rule:

0 : *true* = actions = defaultActions 
[er.directtoweb.assignments.ERDKeyValueAssignment] (0) From: 
ERDirectToWeb.framework/Resources

overriding this with a 
er.directtoweb.assignments.delayed.ERDDelayedKeyValueAssignment solves it.

Thank you,
Freddie Tilley



On 22 apr 2011, at 11:59, Freddie Tilley wrote:

 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  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/freddie%40cpp.nl
 
 This email sent to fred...@cpp.nl
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/freddie%40cpp.nl
 
 This email sent to fred...@cpp.nl

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: isEntityDeletable being cached in D2WContext in ERMODListPage

2011-04-22 Thread Freddie Tilley
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  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/freddie%40cpp.nl
 
 This email sent to fred...@cpp.nl

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


isEntityDeletable being cached in D2WContext in ERMODListPage

2011-04-21 Thread Freddie Tilley
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 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: isEntityDeletable being cached in D2WContext in ERMODListPage

2011-04-21 Thread Ramsey Gurley
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

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 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.com
 
 This email sent to ramseygur...@gmail.com



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: isEntityDeletable being cached in D2WContext in ERMODListPage

2011-04-21 Thread David LeBer

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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com