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.
Questions tagged [coldbox]
137 questions
2
votes
0 answers
Coldbox handler testing using testbox and asyncAll enabled
tl;dr; does anyone know how to safely do asynchronous coldbox handler integration testing using testbox?
I'm using coldbox 3.8.1.00076 and testbox 1.1.0.00076 and have created some integration tests similar to the example below and to make them run…

Snipzwolf
- 533
- 1
- 8
- 22
2
votes
0 answers
Coldbox module name collision with handler package
I have a ColdBox monolith we will be migrating into modules. The directory structure is
/myapp
/handlers
/admin
person.cfc
product.cfc
/user
cart.cfc
global.cfc
main.cfc
I'm trying to load an external module…

jinglesthula
- 4,446
- 4
- 45
- 79
2
votes
0 answers
Coldbox module event dying in renderLayout call
tl;dr: renderLayout(layout="myLayout", view="alpha/bravo/viewFile") resolves alpha as a module name rather than a package name in the host application, even if code execution is in the package rather than the module.
How do I get the path…

jinglesthula
- 4,446
- 4
- 45
- 79
2
votes
2 answers
Why does cacheTimeout setting of renderView() in ColdBox application have no effect?
I'm developing a ColdBox application with modules and wanted to use it's caching functionality to cache a view for some time.
component{
property name="moduleConfig" inject="coldbox:moduleConfig:mymodule";
...
function widget(event, rc,…

Sebastian Zartner
- 18,808
- 10
- 90
- 132
2
votes
2 answers
How to access the event arguments passed to a ColdBox module?
I have a view in my ColdBox application that is calling a module handler within the view like this:
#runEvent( event="mymodule:home.index" )#
Now I want to pass arguments to the module, so I changed the call to this:
#runEvent(…

Sebastian Zartner
- 18,808
- 10
- 90
- 132
2
votes
0 answers
Error importing routes configuration file
I'm updating from Coldbox 3.8.1 to coldbox 4.1.0 and the error I keep getting is:
Error importing routes configuration file: Could not find the
included template config/Routes.cfm. Note: If you wish to use an
absolute template path (for…

Colin
- 91
- 7
2
votes
1 answer
Coldfusion Coldbox - create and cache drop down options from queries
I am looking for opinions and alternate ideas, as what I am doing is working, but wanted to ask if it was optimal
I have a site that when the index handler is called, it populates the request collection with specific queries from database tables so…

Jay Rizzi
- 4,196
- 5
- 42
- 71
2
votes
2 answers
How to populate a select list using a structure inside select HTML helper in ColdBox?
I want to generate a select list that should look like the following-
For this I am using select() HTML helper in ColdBox.
#html.select(
…

Pankaj
- 1,731
- 1
- 13
- 15
2
votes
1 answer
Site architecture for white-label applications
I'm about to start a white-label server-side application but I don't want to jump in and start coding. This is something I've not had to do before, at least not from scratch and I'm the one in control this time!
I've worked on many application, good…

david-l
- 623
- 1
- 9
- 20
2
votes
1 answer
Coldfusion Hibernate - Filter results by field value inside collection
I have an entity that has multiple fields; one of the fields is "quantifications", which holds a collection of different entities.
I'm querying for this entity in an API controller call that returns a list via JSON. I want to filter the result set…
user677526
2
votes
1 answer
MXUnit mocking permission denied
I was finally able to get mxunit and mocking working on my local Windows install but after the sys admin installed it on our Linux server I get the following error only when I use it. It works fine for another app that does not require…

Aaron
- 1,042
- 2
- 12
- 30
2
votes
1 answer
Passing variable/rc on form submit without using hidden inputs in Coldfusion/Coldbox
ve tried this a million ways, So i figured i would just break down and ask
typically, my setup is a handler with different events for edit view, and save for form submit
function edit(event, rc, prc) {
…

Jay Rizzi
- 4,196
- 5
- 42
- 71
2
votes
6 answers
Ajax requests, through MVC Framework (e.g. ColdBox) or not?
Do you fire ajax requests through the MVC framework of choice, or directly to the CFC?
I'm leaning towards bypassing the MVC, since I need no 'View' from the ajax request.
What are the pro's of routing ajax calls through MVC framework, like…

Henry
- 32,689
- 19
- 120
- 221
1
vote
0 answers
ColdFusion Builder 2 and ColdBox on a Remote Server
I have a remote Ubuntu server, but I work on a Windows computer.
My idea was to work with ColdBox, but I cannot perform the installation on the remote server, because it does not match the installation directory with the webroot.
Is the use of…

Andreas Wili
- 11
- 2
1
vote
2 answers
Using wirebox in coldbox how do I create a bean from a model
I am not good with the terminology yet, so please forgive/correct me. Also I have no idea hw to use Coldspring, etc, so I am trying to just use wirebox.
I want to not use the beanFactory plugin and just call wirebox methods straight from my…

Tyler Clendenin
- 1,459
- 1
- 12
- 25