Exit Fuseactions

Fuses should be designed so that they contain as few dependencies on the rest of the application as possible. This is why we use XFAs rather than hard-coded fuseactions. Following is a sample hard-coded fuseaction:

<form action="index.cfm?fuseaction=users.login" method="post"> 

Here is a sample XFA:

<form action="index.cfm?fuseaction=#xfa.submit#" method="post"> 

XFAs are nothing more than fuseaction values as variables. They are set in the fbx_switch.cfm just before <cfinclude> ing the fuse:

<cfcase value="privacy"> 
  <cfset xfa.continue="policy.payments"> 
  <cfset xfa.back="policy.security"> 
  <cfinclude template="dsp_privacy.cfm"> 
</cfcase> 

This allows the fbx_switch.cfm file to control where each fuse it calls is allowed to ...

Get Fusebox: Developing ColdFusion® Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.