Skip to content

Is the value of the extend attribute case sensitive when extending the framework?

thofrey edited this page Jul 23, 2013 · 2 revisions

Yes, however this is not a Mach-II specific problem per se. ColdFusion case-sensitivity depends on what platform you are using, file names are case-sensitive on *nix platforms while case-insensitive on Windows platforms. This can cause migration issues if you move your application from a Windows platform to a *nix platform and you are not careful about the case when specifying a framework component in the extend attribute of the cfcomponent tag. This also applies when specifying the dot delimited path to a component you are trying to invoke.

Mach-II listeners, filters and plugins all extend the framework. When writing a listener, plugin or filter we recommend that you specify the component in the same case as they appear in your file system. Using the correct case reduces migration issues that may occur if you move your application to a different platform. Listed below are the Mach-II components in the correct case that are used to extend your application.

All listeners are extended by:

    MachII.framework.Listener

All filters are extended by:

    MachII.framework.EventFilter

All plugins are extended by:

    MachII.framework.Plugin

Back to FAQs

Clone this wiki locally