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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists