We use this technique in our "facades" which are remotely available
CFCs, basically web services. Some are used by in-house windows apps,
others are used on our ColdFusion pages for dynamic data, like a
<select> control thats bound to the contents of another <select>
control, as in:

<cfselect id="billingLocality" name="billingLocality"
bind="cfc:public.RegionFacade.getRegions(country = {billingCountry})">

The getRegions method in RegionFacade.cfc might look something like:

<cffunction name="getRegions" output="false" access="remote">
        <cfargument name="blah1" type="any" required="false" default="0">
        <cfargument name="blah2" type="any" required="false" default="0">

        <cfset var RegionService =
application.myapp_glue.framework.getBeanFactory().getBean("RegionService") /
>
        <cfreturn RegionService.getRegions(argumentCollection = Arguments) />
</cffunction>



On Apr 26, 2:03 pm, "Dan Wilson" <[email protected]> wrote:
> Can you explain why you might be reaching into the application scope to find 
> MG?
>
> DW
>
> Sent from a mobile. Please excuse brevity and typos.

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to