Questions tagged [coldbox]

ColdBox is an object-oriented, event-driven framework for ColdFusion that includes tools to help developers with bug reporting, logging, enterprise caching, debugging, i18n, URL rewriting, ORM integration, testing, and mocking.

137 questions
3
votes
2 answers

Best practice for Datasource use in a CFC

I have an application which uses context sensitive datasources. Currently I keep the datasource information stored a such reqeust.DB.Datasource = "DatasourceName"; request.DB.Username = "DatasourceUsername" request.DB.Password =…
Tyler Clendenin
  • 1,459
  • 1
  • 12
  • 25
3
votes
1 answer

Can setNextEvent() persist variables to be restored in prc?

Can setNextEvent() persist variables to be restored in prc of the destination event? Thanks.
Henry
  • 32,689
  • 19
  • 120
  • 221
3
votes
2 answers

ColdBox - How can set a view and pass-on parameters with setView() call?

I am using ColdBox with ColdFusion 10. I wanted to pass an argument say id=1000 with the setView(). I couldn't find any example where a param is being passed. Here is the code: component { // Dependency Injection property name="requestService"…
Kindle G.
  • 51
  • 7
3
votes
1 answer

Using static variables

I'm using the ColdBox framework in ColdFusion. I would like to know how to use static variables in a function. Can anyone explain how, or suggest an alternative to the "static" concept.
rique
  • 237
  • 1
  • 3
  • 7
3
votes
2 answers

HMVC framework for Coldfusion?

I'm given a task to develop a couple of applications in ColdFusion that will share some of the data - same data but different presentation. The first solution that comes in mind is to create a ColdFusion widget that as I understand breaks some MVC…
Alex
  • 481
  • 6
  • 12
3
votes
1 answer

Converting from ColdFusion Fusebox 5.5 noxml

I have a large Adobe ColdFusion 9 site that uses the no XML version of Fusebox 5.5. The site does not currently use CFCs in the model. The choices have been narrowed down to either CFWheels, Coldbox, or FW/1. My question is, which of those three…
3
votes
1 answer

SES problems with IIS 7.5 and ColdFusion 10

I've got a site built using ColdBox and am trying to remove the /index.cfm/ from the URL. I have this working great on ColdFusion 9 running on IIS7 using the below web.config file, but can't for the life of me get it to work on CF10/IIS7.5. The…
ken.dunnington
  • 905
  • 1
  • 7
  • 20
2
votes
2 answers

Why isn't Coldbox route-visualizer displaying in browser after successful install?

I have Coldbox and a Coldbox app on my local machine, which I'm using for a Coldbox hands-on video course (CFcasts.com, "Coldbox from Zero to Hero Workshop). I just successfully installed the route-visualizer module for Coldbox via…
Cmaso
  • 1,095
  • 1
  • 10
  • 23
2
votes
0 answers

Deploy Coldbox Application to an existing Adobe Coldfusion 2021 instance

I have a simple Coldbox REST application that just calls the following function and returns either 0 or 1: function getTurnstileData(location, type, rfid){ spTurnstile = new storedProc(procedure='pr_dtr_timedata_check',…
Eric
  • 21
  • 1
2
votes
1 answer

Problems with CORS. COLDBOX - Coldfusion

we are using ColdBox for our backend application and we are experiencing weird problems with CORS. We have a preProcess function that servers as interceptor for ajax calls and it is like this: function preProcess( event, data, buffer, rc, prc ){ …
2
votes
1 answer

Error "Schema "information_schema" not found;" running "migrate up" on H2 database

I'm testing h2 database in a ColdBox application (on Lucee) ... I can connect to database with Quick but I'm not able to run migrations... this is the error displayed in CommandBox after migration init and migration up ERROR (5.2.1+00295) Schema…
elena
  • 123
  • 1
  • 11
2
votes
2 answers

Coldbox site thru CommandBox internal server returning different variable than same site serverd from IIS

I just starting to look into ColdBox and have just gone through the Quick Start (https://coldbox.ortusbooks.com/getting-started/getting-started-guide) and added #getSetting("APPNAME")# to the hello.index Using CommandBox "start server" on my dev…
Lance
  • 3,193
  • 2
  • 32
  • 49
2
votes
1 answer

What is setMethod() and populateModel() in coldbox framework

What are setMethod(parameter) and populateModel(string) in the given code of the ColdBox framework? function addUser(event,rc,prc) { LOCAL.userBean = populateModel("userBean").init(5,prc.siteid,event.getValue('userid',0)); rc.user…
Basit Ali
  • 155
  • 6
2
votes
1 answer

How can you add dynamic ColdBox routes after configuration loads?

I'd like to create some routes based on data in a database table. I assume this will need to be done after the framework initializes so what I've done so far is created a new interceptor that runs on: afterConfigurationLoad. My interceptor receives…
Dave L
  • 3,095
  • 3
  • 16
  • 25
2
votes
1 answer

Coldbox recommended way of getting access to variables set inside legacy application cfc

I am adding Coldbox to our legacy application and I ran into a problem where we can't access certain variables from within the views when using Coldbox. In the existing legacy code inside of Application.cfc in the onRequestStart method we set…
Yamaha32088
  • 4,125
  • 9
  • 46
  • 97
1
2
3
9 10