How does one debug rule firings?
--- On Sat, 7/21/12, David Holt <email@hidden> wrote:
From: David Holt <email@hidden> Subject: Re: ERDEditHTML and tiny_mce To: "Theodore Petrosky" <email@hidden> Cc: email@hidden Date: Saturday, July 21, 2012, 4:05 PM
I feel for you Ted. Sometimes it's like a game of Where's Waldo:
101 : (pageConfiguration = 'EditProject' and property = 'projectDescription') => componentName = "ERDEditHTML" [com.webobjects.directtoweb.Assignment],
101 : (pageConfiguration = 'EditProject' and properKey = 'projectDescripton') => componentName =
"ERDEditHTML" [com.webobjects.directtoweb.Assignment],
Both of your previous attempts contain errors.
Do you know how to debug rule firings?
David On 2012-07-21, at 12:28 PM, Theodore Petrosky < email@hidden> wrote: I don't know what I was doing wrong, but I got it to work.
just for giggles I tried
pageConfiguration = 'EditProject'
with no propertyKeys and voila all the text fields showed up as ERDEditHTML fields.
so I added the correct propertyKey and it is working.
Don't know what I did.
Ted
--- On Fri, 7/20/12, David Holt <email@hidden> wrote:
From: David Holt <email@hidden> Subject: Re: ERDEditHTML and tiny_mce To: "Theodore Petrosky" <email@hidden> Cc: email@hidden Date: Friday, July 20, 2012, 10:19 PM
On 2012-07-20, at 6:55 PM, Theodore Petrosky <email@hidden> wrote:
I am looking at the D2WPresentation by David Holt
WOWODC11.
he is using tiny_mce.js in the edit page of a d2w app.
I thought I set it up but I can not seem to get it to work.
in my properties file:
I copied the tiny_mce folder from the
WebServerResources folder of the SimpleBlog example into my WebServerResources folder.
# Where is tiny_mce located?
er.directtoweb.ERDEditHTML.tinyMceSourceFileName=tiny_mce/tiny_mce.js
er.directtoweb.ERDEditHTML.tinyMceSourceFrameworkName=app
in my rules file:
101 : (task = 'edit' and property =
'projectDescription') => componentName =
"ERDEditHTML" [com.webobjects.directtoweb.Assignment],
101 : ((task = 'inspect' or task = 'list') and
propertyKey = 'projectDescripton') => componentName = "ERD2WDisplayHTML" [com.webobjects.directtoweb.Assignment]
I am beginning to think my problems lies in the LHS of
my rule.
when I click the 'edit' button on a row, I get an edit
page. the page is listed as "Edit Project". I have tried:
101 : (pageConfiguration = 'EditProject' and property =
'projectDescription') => componentName = "ERDEditHTML" [com.webobjects.directtoweb.Assignment],
still no joy and no error messages.
am I missing a rule?
_______________________________________________
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
|