• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERDEditHTML and tiny_mce
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERDEditHTML and tiny_mce


  • Subject: Re: ERDEditHTML and tiny_mce
  • From: Theodore Petrosky <email@hidden>
  • Date: Sat, 21 Jul 2012 18:18:20 -0700 (PDT)

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
References: 
 >Re: ERDEditHTML and tiny_mce (From: David Holt <email@hidden>)

  • Prev by Date: Re: Git repo layout for own WO projects
  • Next by Date: Re: Charting framework for WO/Wonder.
  • Previous by thread: Re: ERDEditHTML and tiny_mce
  • Next by thread: question about javaEnum prototype
  • Index(es):
    • Date
    • Thread