Search the web
Sign In
New User? Sign Up
fusebox5
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
coldspring get lexicon oddness   Topic List   < Prev Topic  |  Next Topic >
Reply | Forward < Prev Message  | 
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



Thu Mar 15, 2007 4:23 pm

nptonguk
Offline Offline
Send Email Send Email

Forward
< Prev Message  | 
Expand Messages Author Sort by Date

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: ...
Nick Tong - http://Ta...
nptonguk
Offline Send Email
Mar 15, 2007
4:23 pm

Nik, There is another lexicon to initialize the coldspring factory named "initialize". That is what I have been using to set up factory in <appinit> block in...
Qasim Rasheed
qasim_1976
Offline Send Email
Mar 15, 2007
4:47 pm

Hi Qasim, I understand what you're saying but what if i don't wish to use that lexicon to instantiate the CS factory then i can't see it working? You're almost...
Nick Tong
nptonguk
Offline Send Email
Mar 16, 2007
4:48 pm

... I don't understand you - I use the lexicon with initialize and it works just fine. If you want to wire it into an external factory, you can always use the...
Sean Corfield
seancorfield
Online Now Send Email
Mar 16, 2007
5:25 pm

Okay, in my application.cfc onApplicationStart method i instantiate my CS factory. This is then in my application scope as application.serviceFactory ...
Nick Tong
nptonguk
Offline Send Email
Mar 16, 2007
5:53 pm

... Are you sharing this across multiple applications? Across non-Fusebox applications? If the answer is "no", then why do it external to Fusebox. ... Do that...
Sean Corfield
seancorfield
Online Now Send Email
Mar 16, 2007
9:02 pm

On 16/03/07, Sean Corfield <seanc@...> wrote: Are you sharing this across multiple applications? Across non-Fusebox applications? I use CS to load...
Nick Tong - http://Ta...
nptonguk
Offline Send Email
Mar 16, 2007
11:20 pm

On Mar 16, 2007, at 4:20 PM, Nick Tong - http:// ... No, you're missing the point, I think. You are *not* required to use the lexicons per se. You *can* have...
Sean Corfield
seancorfield
Online Now Send Email
Mar 16, 2007
11:52 pm

The penny has dropped, thanks Sean. On a side note to read this thread i've had to access it via yahoo as Gmail isn't picking them up, has anyone else noticed...
Nick Tong
nptonguk
Offline Send Email
Mar 17, 2007
9:25 pm

... Cool. ... I got a *massive* bounce back (58 undelivered) from nearly all the Gmail accounts on the list claiming people were over their allocations. Sounds...
Sean Corfield
seancorfield
Online Now Send Email
Mar 18, 2007
1:22 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help