Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Fusebox
Cold Fusion Fuse Box List
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About CF Fusebox Methods :
product's home
product's list home
 
  Archived TallyList / Fusebox: 
Subject: RE: attributes.XFA
BORKMAN Lee (83p/+0r)     Posted: Thursday 03 May 2001
This post: 60 views, +0 rating

Hi Josian,

I think of XFA definitions as event-handler definitions: <CFSET ATTRIBUTE.XFA.user-event = "eventhandler">

It's pretty reasonable to have these defined in the app_globals, or myGlobals. Consider, there are a certain set of user-events that your application can invite/accept. If you always want user-event-A to be handled by a particular FuseAction (ie event-handler), then myGlobals is the logical place to define the handler.

On the other hand, if your user-event is as non-specific as "submitForm", then this will probably need different handlers depending on the context, and myGlobals is not the best place. Instead, though, you might define XFA.submitNewCustomerForm and XFA.submitEditCustomerForm, each with its own handler, in which case myGlobals is the way to go.

Am I making any sense?

LeeBB.

-----Original Message----- From: josian hi, Newbie to XFB. Wanna know for what is purpose of defining the fuseactions in my globals.cfm. It seem that i miss something cause i tried to cut out that piece but the app(simple contact manager) is still working fine.

<cfset attributes.XFA.listAllContacts = "con.home"> <cfset attributes.XFA.addContact = "con.newContactInfo"> <cfset attributes.XFA.editContact = "con.editContactInfo"> <cfset attributes.XFA.deleteContact = "con.deleteContact">

IMPORTANT NOTICE: This e-mail and any attachment to it is intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. The RTA is not responsible for any unauthorised alterations to this e-mail or attachment to it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/fusebox@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


Similar Subject Line Posts (+/- two weeks of this post)
RE: attributes.XFA  03 May 2001 (this post)   (60 v/ +0 r)
attributes.XFA  03 May 2001   (36 v/ +0 r)
attributes.XFA  03 May 2001   (40 v/ +0 r)
 

Send a reply to the Fusebox list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000