One of the minor side-effects of the way ColdSpring easily handles
more and more complexity is that I found my ColdSpring XML file got
out of control unless I took an organised approach to the layout.
My first few ColdSpring sites had about 20 CFCs or so to manage, and
without thinking much,
On Sat, Jul 25, 2009 at 11:15 PM, Mike Kearafpwebwo...@gmail.com wrote:
I tried putting the CFCs into the XML file in alphabetical order, and
that didn't really work. It improved things a bit, but what worked
most was to put CFCs related to different parts of the application
together - all
Hi, I have my DNS bean injected into my CFC, I have used a setter. how do I now
use the dns details now 'within' my CFC. do I create it in my init method? I
want to do something like the following...
cfquery name=test datasource=#instance.dsn.getName()# etc.
The way ColdSpring does this is simpler:
The init() of your CFC takes a dsnBean as an argument. In that init()
you simply set variables.dsnBean = arguments.dsnBean. You can then use
it directly from the variables scope;
cfquery name=test datasource=#variables.dsnBean.getName()# ...
mxAjax /
Hi,
I did try that with...
cffunction name=init access=public returntype=any hint=constructor
cfargument name=dsnBean type=any /
cfset variables.instance['dsnBean'] = arguments.dsnBean /
cfreturn this /
/cffunction
however I just get the error Element DSNBEAN is
With your example here you could use:
cfquery name=test datasource=#getDsnBean().getName()# etc...
Dominic
2009/7/26 Glyn Jackson glyn.jack...@newebia.co.uk
Hi, I have my DNS bean injected into my CFC, I have used a setter. how do I
now use the dns details now 'within' my CFC. do I create
If you want to inject it using init, you need:
constructor-arg name=dsnBean ref bean=dsnBean / /constructor-arg
Dominic
2009/7/26 Glyn Jackson glyn.jack...@newebia.co.uk
Hi,
I did try that with...
cffunction name=init access=public returntype=any
hint=constructor
cfargument
the parameter to the init function was not passed in for some reason?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
I like this example (below) but for some reasons its not being passed...
cffunction name=init access=public returntype=any hint=constructor
cfargument name=dsnBean type=any required=yes /
cfset variables.instance['dsnBean'] = arguments.dsnBean /
cfreturn this /
For the arg to be passed into to your constructor, you need:
...
bean id=userGateway class=model.common
constructor-arg name=dsnBean
ref bean=dsnBean /
/constructor-arg
/bean
...
Dominic
2009/7/26 Glyn Jackson glyn.jack...@newebia.co.uk
!DOCTYPE
Hi Dominic,
I have tried...
bean id=dsnBean factory-bean=ColdboxFactory factory-method=getDatasource
constructor-arg name=alias
valueDBDetails/value
/constructor-arg
/bean
bean id=userService class=model.UserService /
bean id=userGateway
I know it exsits as if I go back to the setter version i can dump the bean in
the CFC
cffunction name=setdsnBean access=public returntype=void output=false
_wireme=ioc
cfargument name=dsnBean type=any required=true hint=Set DNS Beand /
cfset variables.instance['dsnBean'] =
Still not sure why I am getting this error since it should have been passed.
any more ideas? thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Strange indeed, really should work. Couple of tests I guess:
1. restart cf
2. cffunction name=init access=public returntype=any
hint=constructor
cfdump var=#arguments# /cfabort/
/cffunction
Dom
2009/7/26 Glyn Jackson glyn.jack...@newebia.co.uk
Still not sure why I am getting this
Restarted and used the dump as suggested and I get...
struct [empty]
strange! If I was to go back the to setdnsBean i can dump in that function and
its there however I want to inject using the init
It should work again just in cause I will post the full code below, if you have
any more ideas
do you or anyone else have any more ideas on this? Thanks :)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Hm, time to try the ColdSpring list I'd say. And while you wait for an
answer from there, use the property method and move on ;)
Dominic
2009/7/26 Glyn Jackson glyn.jack...@newebia.co.uk
do you or anyone else have any more ideas on this? Thanks :)
Hm, time to try the ColdSpring list I'd say.
Maybe its a ColdBox issue!
?And while you wait for an answer from there, use the property method and move
on ;)
Will do, thanks for your help :)
Dominic
2009/7/26 Glyn Jackson glyn.jack...@newebia.co.uk
do you or anyone else have any more
I have another question regarding ColdSpring and ColdBox. I will be using it to
create a bean on the init() method of my handler, I will not create the object
again after that. This bean contains all my SQL and database interactions
(example below). My question is, singletons. is this ok, I
hi
we have a website used in uk. and the server is in usa.
when files are modified it is of course displaying the est time.
i am using the getfileinfo function to get this data but how can i format it to
uk time which is 5 hours ahead?
if i try to add five to the hours then of course an hour
ColdSpring should generally only be used to create and manage
singletons, if that answers the question.
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/7/26 Glyn Jackson glyn.jack...@newebia.co.uk:
I have another question regarding ColdSpring and
There is a DateAdd function in ColdFusion, which you can use to add hours.
Inthe example you provided, it would automatically roll the date over to 4
am the next day
On Sun, Jul 26, 2009 at 11:18 AM, Richard White rich...@j7is.co.uk wrote:
hi
we have a website used in uk. and the server is
So is my common.cfc classed as a singleton?
ColdSpring should generally only be used to create and manage
singletons, if that answers the question.
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
Not sure how you are trying to do it, but this should work:
cfoutput#dateAdd(h, 5, Jul 26 2009 23:48)#/cfoutput
Marius
-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk]
Sent: July 26, 2009 11:18 AM
To: cf-talk
Subject: format time to local
hi
we have a website used
Sorry it makes more sense now I have read this...
http://www.coldspringframework.org/coldspring/examples/quickstart/index.cfm?page=factory
~|
Want to reach the ColdFusion community with something they want? Let them know
on
dateadd worked perfect thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Richard White wrote:
we have a website used in uk. and the server is in usa.
and does DST kick in the same time in your timezone (tz) as it does in the
server's tz? and will this be the case for the life of the app?
~|
Want
yes good point, also there will be users in usa eventually starting to use it,
have you come across this before or seen how others have dealt with this?
thanks
Richard White wrote:
we have a website used in uk. and the server is in usa.
and does DST kick in the same time in your timezone
Richard White wrote:
yes good point, also there will be users in usa eventually starting to use
it, have you come across this before or seen how others have dealt with this?
http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=catcatid=162AEDB4-20ED-7DEE-2A6CF1B79AC2E03A
Guys...
Does anyone know of a possible way of connecting to devices on the network
using ColdFusion and telnet/ssh and execute commands on the host machines?
Regards,
Arsalan
~|
Want to reach the ColdFusion community with
I store the date based upon the timezone the database server sits in. Then
for each location I store the timezone information and do date/time
differencing when displaying things for the user to see. What I use is a
combination of things within Oracle and some ColdFusion. This in turn takes
Hi Philip,
Did you ever have a chance to write a Twitter/CF/oAuth manual? I'm going
through the same experience you mentioned, trying to figure out
oauth.riaforge.org but haven't been able to find any documentation, examples
or tutorials.
Any help is appreciated.
Thanks,
Brett
Philip
We're using a cfgrid. Pagesize is 25. If you specify href, and there are less
than 25 results are returned... then remaining rows are empty but still
clickable.This results in CFGRIDKEY=null
Thanks,
Will
~|
Want to reach the
Is it possible your are running on Linux and case sensitivity is an issue?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
i have 2 months to learn how to build an entire ecommerce application.
i've been in the finance field for so long that ecommerce is a
completely new industry for me.
to be honest, i wouldn't know if cookies or client variables are the
best choice for cart storage. what data should i
thanks for some great advice on simply purchasing a shopping cart. I haven't
seen cfwebstore but have downloaded cfshopkart.
my requirements are extremely small compared to a full featured shopping cart.
The only requirements are as follows for my first stage (stage 1):
1) categories and
36 matches
Mail list logo