cfwebstore

2009-07-26 Thread mike pop

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 subcategories (unlimited subcategories)
2) products allow options which can be shared among different products
(e.g. tee shirt in S,M,L size will be radio buttons) and can be used for 
multiple products.

3) customer can perform one time only shopping without giving all the detail 
info
4) order details must be saved
5) order status will be used for tracking purposes

As you can see this is simply a base level prototype, not a fully featured 
shopping cart application.

I would like to use fusbox 5.X along with CFC's as much as possible.  Again, 
without adequate experience in ecommerce, I need some assistance in building 
this application.

If you have experience in this area, please let me know.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325002
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ecommerce emergency

2009-07-26 Thread mike pop

> 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 store in session 
> variables?  the basic ecommerce questions are things that I have not 
> been exposed to before.
> 
> there's lots of snippets here and there; lots of basic material in 
> books and tutorials.
> 
> i need something to tie everything together.  i found a free 
> coldfusion app but this spaghetti code is so old that it's like 
> looking at code from a time machine.
> 
> all recommendations and advice welcome.  if anything, the first step 
> is building the admin interface for products, categories/subcategories, 
> customers, orders, shipping, and payment (only credit card and COD 
> available).
> 
> the customer site will come later.
> 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325001
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Nicholas Stein

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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325000
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Why are empty rows clickable?

2009-07-26 Thread Will Tomlinson

We're using a . 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 ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324999
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Twitter oAuth

2009-07-26 Thread nobosh

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 Kaplan-2 wrote:
> 
> 
> In case anyone's interested, I figured it all out with the help of some
> off-list folks.  Contact me if you need help with this.
> Perhaps I will write a quick Twitter/ColdFusion/oAuth manual in the
> future.
> 
> On Mon, Apr 6, 2009 at 7:00 PM, Philip Kaplan  wrote:
> 
>> Anyone here have any experience with oAuth?  Or better yet with Twitter's
>> oAuth implementation?
>> I'm just not making any headway.  I've downloaded this:
>> http://oauth.riaforge.org/
>>
>> But there's very little documentation on the CF oAuth side or on the
>> Twitter side.
>>
>> Anyone ever get oAuth to work?  I don't really know where to start.
>>
>>
> 
> 
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324998
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: format time to local

2009-07-26 Thread Aaron Rouse

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
into account DSTs as well as allows me to have a system that should work if
the DB ever were to be moved to another timezone for some reason.

On Sun, Jul 26, 2009 at 12:12 PM, 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?
>
> 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 (tz) as it does in the
> >server's tz? and will this be the case for the life of the app?
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324997
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


SSH & Telnet - ColdFusion

2009-07-26 Thread Arsalan Tariq Keen

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 something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324996
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: format time to local

2009-07-26 Thread Paul Hastings

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=cat&catid=162AEDB4-20ED-7DEE-2A6CF1B79AC2E03A

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324995
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: format time to local

2009-07-26 Thread Richard White

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 (tz) as it does in the 
>server's tz? and will this be the case for the life of the app? 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324994
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: format time to local

2009-07-26 Thread Paul Hastings

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 to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324993
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: format time to local

2009-07-26 Thread Richard White

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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324992
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: singletons ColdSpring and ColdBox

2009-07-26 Thread Glyn Jackson

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 the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324991
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: format time to local

2009-07-26 Thread Marius Milosav

Not sure how you are trying to do it, but this should work:

#dateAdd("h", 5, "Jul 26 2009 23:48")#

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 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 of 23 would be 28,
so is there an easier way to do this

thanks





~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324990
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: singletons ColdSpring and ColdBox

2009-07-26 Thread Glyn Jackson

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/
>> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324989
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: format time to local

2009-07-26 Thread Dave Sueltenfuss

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  wrote:

>
> 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 of 23 would be 28,
> so is there an easier way to do this
>
> thanks
>
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324988
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: singletons ColdSpring and ColdBox

2009-07-26 Thread James Holmes

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 :
>
> 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 dont 
> see how doing this be an issue as long as I var inside the CFC right?
>
> example code inside my CFC
>
> 
> 
> 
> 
> 
> 
>  username="#instance.dsn.getUsername()#" 
> password="#instance.dsn.getPassword()#">
>    EXECUTE usp_listDepartments
>   �...@pagesize =  value="#arguments.pagesize#" />,
>   �...@targetpage =  value="#arguments.targetpage#" />,
>   �...@highest =  value="#arguments.highest#" />,
>   �...@sto =  value="#arguments.storeId#" />,
>   �...@dept =  value="#arguments.depId#" />
> 
> 
> 
>
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324987
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


format time to local

2009-07-26 Thread Richard White

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 of 23 would be 28, so 
is there an easier way to do this

thanks



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324986
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


singletons ColdSpring and ColdBox

2009-07-26 Thread Glyn Jackson

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 dont see how doing 
this be an issue as long as I var inside the CFC right?

example code inside my CFC



 
 
  
   

EXECUTE usp_listDepartments
@PageSize = ,
@TargetPage = ,
@Highest = ,
@Sto = , 
@Dept = 




 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324985
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

>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 
>
>>
>> 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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324984
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Dominic Watson

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 

>
> 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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324983
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324982
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

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 they would be very much welcome...

coldspring.xml
http://www.springframework.org/dtd/spring-beans.dtd";>




  


DBDetails

 



  
  

 
 



common.cfc

   



  



---

error

Error Type:  Application : [N/A]
Error Messages: The DSNBEAN parameter to the init function is required but was 
not passed in.

ID: CF_TEMPLATEPROXY
LINE:   187
Template:   D:\wwwroot\coldbox\system\plugins\beanFactory.cfc
ID: CF_UDFMETHOD
LINE:   240
Template:   D:\wwwroot\coldbox\system\plugins\beanFactory.cfc 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324981
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Dominic Watson

Strange indeed, really should work. Couple of tests I guess:

1. restart cf
2. 
   


Dom


2009/7/26 Glyn Jackson 

>
> 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
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324980
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

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
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324979
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

I know it exsits as if I go back to the setter version i can dump the bean in 
the CFC


  
   
  
  


however I like your version better, but using the..

  
  

 
 

then...






  
just give me the same error "The DSNBEAN parameter to the init function is 
required but was not passed in." 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324978
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

Hi Dominic,

I have tried...



DBDetails

 



  
 
 

and I still get "The DSNBEAN parameter to the init function is required but was 
not passed in." 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324977
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Dominic Watson

For the arg to be passed into to your constructor, you need:

...


 
 
 

...

Dominic




2009/7/26 Glyn Jackson 

>  http://www.springframework.org/dtd/spring-beans.dtd";>
>
>
> 
> 
>  factory-method="getConfigBean" />
>
>  factory-method="getDatasource">
>
>DBDetails
>
> 
>
>
>
>
>
>
>
>
> 
>
> 
>


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324976
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

I like this example (below) but for some reasons its not being passed...








the full coldspring.xml
-

http://www.springframework.org/dtd/spring-beans.dtd";>








DBDetails

 








 

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324975
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324974
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Dominic Watson

If you want to inject it using init, you need:

  

Dominic


2009/7/26 Glyn Jackson 

>
> Hi,
>
> I did try that with...
>
>  hint="constructor">
>
>
>
> 
>
> however I just get the error "Element DSNBEAN is undefined in ARGUMENTS."
>
> This is how I am injecting the bean into the CFC...
>
> 
>  
>   
>  
> 
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324973
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Dominic Watson

With your example here you could use:



>
> 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...
> 
> --
>   output="false" hint="Return the dnsBean.">
>  
> 
>
>  output="false" hint="Set the dsnBean.">
>
>
>
> 
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324972
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

Hi,

I did try that with...







however I just get the error "Element DSNBEAN is undefined in ARGUMENTS."

This is how I am injecting the bean into the CFC...


  
   
  
 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324971
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: using my injected bean within a CFC

2009-07-26 Thread James Holmes

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;

http://www.bifrost.com.au/blog/



2009/7/26 Glyn Jackson :
>
> 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...
> 
> --
>   output="false" hint="Return the dnsBean.">
>  
> 
>
>  output="false" hint="Set the dsnBean.">
>    
>    
>
> 
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324970
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


using my injected bean within a CFC

2009-07-26 Thread Glyn Jackson

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... 

  

   




 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324969
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Coldbox and ColdSpring How to?

2009-07-26 Thread Sean Corfield

On Sat, Jul 25, 2009 at 11:15 PM, Mike Kear 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 the USER cfcs together and all the CONTENT cfcs
> together and all the CATALOG cfcs together etc.  With comments between
> the sections of the XML file, so they are easy to find.

Another useful trick is to use the  directive so you can break
your ColdSpring XML file down into multiple files with each file
containing CFCs for a specific part of the application, then you have:





Each imported file must be a syntactically complete ColdSpring XML
file, i.e., must contain  ..  and some 
definitions.
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies US -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret At

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324968
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4