Hi list,
I've been playing with the cs lexicon and man they're cool. One thing
though i'm unsure about is on line 29 in the get lexicon (cs:get) is
this:
fb_appendLine('<cfset
#fb_.returnvariable#myFusebox.getApplication().getApplicationData().#fb_.coldspr\
ingfactory#.getBean(beanName="#fb_.verbInfo.attributes.bean#")/>
');
why is "myFusebox.getApplication().getApplicationData()." hard coded?
If you've not setup CS in the fusebox.appinit.cfm file like so:
<cfset myFusebox.getApplication().getApplicationData().serviceFactory
= createObject("component",
"coldspring.beans.DefaultXmlBeanFactory").init(
defaultProperties="#application.defaultProperties#" )/>
then this doesn't work. I setup CS in my application
onApplicationStart function:
application.serviceFactory = createObject( 'component',
'coldspring.beans.DefaultXmlBeanFactory').init(structnew(),application.defaultPr\
operties);
and when i try and use cs:get
<cs:get bean="category"
returnvariable="variables.category"
coldspringfactory="application.servicefactory" />
i get an error saying that application.servicefactory can't be found,
but if i dump the application scope i can see it. I then removed
myFusebox.getApplication().getApplicationData(). from the get lexicon
and it worked fine.
May i suggest that this is included using a variable or have i missed something?
--
Nick Tong
web: http://talkwebsolutions.co.uk
blog: http://succor.co.uk
f..works: http://cfframeworks.com
short urls: http://wapurl.co.uk
green link: http://wapurl.co.uk/?4Z2YDLX