namtax
unread,Dec 11, 2009, 6:56:32 AM12/11/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ColdBox Platform
Hi there
Wondering if I could get some assistance on an issue..
I am trying to implement Coldbox with CF9, so am following the task
manager demo.
I am using coldbox version 2.6.4
I have set up tasks, and taskService cfcs in the model folder, the
same as in the demo...
I then have the following code in my task handler
component extends="coldbox.system.EventHandler" output="false"{
property name="TaskService" inject;
void function save(event) output=false{
var rc = event.getCollection();
rc.task = TaskService.getTask(event.getValue("taskID", ""));
populateModel(rc.task);
taskService.save(rc.task);
flash.put("message","Task saved sucessfully!");
setNextEvent('tasks');
}
}
However, when I call the "task.save", i am getting the error message
taskService is undefined. Im wondering if there is some settings i
need to change to allow the injection of the model object, or if I am
doing something wrong.
Many thanks