I still haven't come up with a solution for this.

I am working on a project removing duplicated code, creating a basic
domain model from a procedural app but one place where business rules
are being duplicated is in the js validation files that check forms on
the site.

I could generate the js from the CFC's that handle the business rules
but not sure the best way to go about this.

I could also use AJAX to do the validation server-side but I'm also
uncomfortable having the server do extra work when it doesn't need to
(and be slightly slower than client-side js)

Someone mentioned on this group that Brian Kotek tacked this problem
using the Bridge Pattern.
Brian, if you read this can you give more details on this. I'd be
interested if you have worked on this problem.

Anyone else with ideas?

Alan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to