In the past we would do something like this, but it is really obsolete with ColdBox 3.0 Rc1+ or am I doing this wrong?
var event = getRequestContext();
event.setValue(“exceptionBean”,exceptionBean);
but I would prefer something more like this, is this still available with the above method somehow?
var rc = instance.event.getCollection();
rc.spaceUrl = ‘AndyScott’;
//Setup the form to test for a valid comment
var form = {
name = ‘Andrew Scott’,
email = ‘andy@stiff.com.ua’,
website = ‘’,
comment = ‘weeeeeee’,
rememberInfo = false,
commentSubscribe = false,
blogEntryId = 1
};
event = execute(‘blog:blogComment.index’);
I am very well aware that the form needs to be added to the RequestContect in a different manner, but I have tried using the above as
var rc = {
name = ‘Andrew Scott’,
email = ‘andy@stiff.com.ua’,
website = ‘’,
comment = ‘weeeeeee’,
rememberInfo = false,
commentSubscribe = false,
blogEntryId = 1
So it adds the stuff to the RC, but it still fails when calling the event. Any help and direction would much be appreciated here.
Regards,
Andrew Scott