XFA stands for eXitFuseAction

eg:
<cfswitch>
....
  <cfcase value="validateLogin">
     <cfset attributes.XFA.successfulLogin = "showUserMenu">
     <cfset attributes.XFA.failedLogin = "login&badLogin=True">
     <cfinclude template="actValidateUser.cfm">
  </cfcase>
....
</cfswitch>

Your actValidateUser.cfm template doesn't need to know what the actual
fuseactions are.

ie actValidateUser.cfm might look like:

....do some user validation...
<cfif let_them_in = "yes">
    <cflocation url="index.cfm?fuseaction=#attributes.XFA.successfulLogin#>
<cfelse>
    <cflocation url="index.cfm?fuseaction=#attributes.XFA.failedLogin#>
</cfif>

check out http://www.halhelms.com/onlineCourses/BasicFusebox/ for more
details

Bert


> -----Original Message-----
> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> Sent: 22 March 2001 12:00
> To: Fusebox
> Subject: what is XFA ?
> 
> 
> 
> Would someone be as kind as to explain to me what 
> .attributes.xfa is for i
> have been following an online tutorial
> but its not quite clear why it used. I understand it has 
> something to do
> with not hardcoding  fuseactions?
> Is this correct?
> 
> Thanks in advance.
> 
> Kola
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to