I really shouldn't be offering any helpful advice to RockVegas hater but...

The only issue I see with what you are trying to achieve is that your
pageManager / page factory must be aware of all all the page types.
I'm thinking you may want to create your pageType and pass that to
your pageManager.

Like so:

pageTypeObj = createObject('component',
'edu.jhsph.page.type.activity').init(pageID);

pageObj = createObject('component', 'edu.jhsph.page.manager').init(pageTypeObj);

It's more of a management perspective though. If Wendy wants to create
a new page type all she has to do is create a new type component that
meets a few standard criteria (must have certain methods, etc.). She
doesn't have to edit the pageManager.cfc to update it with a new
pageType. (Which may effect all courses that use that object).

-Adam


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to