I am new to ColdBox. I have downloaded CF9 and ColdBox 3.0 M5. I am following Jason Dean’s blog posts and have run into a problem. I am at step http://www.12robots.com/index.cfm/2008/11/2/Adding-Todo-Lists–ColdBox-Series-Part-8a where I create a form and a handler. This seems very basic and obvious. However, if the handler does not exist, I do not get the error he suggests. Rather, I get the index page. And, if the handler does exist, I still get the index page. I realize this must be something really basic, but I am not seeing it. I would post code, but don’t have a clue what bits of code would be meaningful. Any pointers or ideas?
I have read a bunch of documentation on the site (before the suggestion was made), and have viewed some of these presentations. None of this was of much help. However, after reading http://wiki.coldbox.org/wiki/EventHandlers.cfm and seeing the following:
//No Packages
index.cfm?event=main.index
//With SES routing
index.cfm/main/index
I decided to try reaching my page using the routed path. That seemed to work. It amazes me, though, that the standard url format did not. Perhaps the above documentation should be changed. Here are the various paths I tried, followed by the corresponding view result and resulting view:
I know, Coldbox can be a bit overwhelming at first. At least, it was
for me. But by looking at all the examples and documentation I got the
hang of it, so hang in there, I am sure you will too.
By the look of it, you have SES Interceptor enabled. In your config
file (probably routes.cfm) can you look for the following setting:
setUniqueURLS
If that has a value of true, that would explain the behaviour you
describe. Read more about the SES interceptor here:
Okay, so just to be clear, SES is the default in 3.0 and the old standard way shown in the documentation I referenced below will not work unless I change something? That’s fine, of course. I would prefer to work with the SES version. I just want to be sure that I am not doing something odd causing the former standard way to work.