The topic has changed to SOLVED, but what was the solution?
I have the same problem. I am using coldbox 2.6.3. With SES enabled
with the default route:
and use package/handler/action/87 in a href OR the address field it
works but I have to change code in my handlers. To make it work I have
to change my Event.getValue("bannerId","") to Event.getValue("Id","")
IT WORKS, but it is not good.
Then if I try: (as Luis suggest: "The variable value is coming as id
and the other one is lost. Remove this
course, as it is no longer necessary. THen you will see what you
Then it does not work, no id in the request scoope only the event:
I must have done something right because the first works but obvious I
do not have any name-value pairs by convention in the rc. Could it be
some settings that is not mentioned in the Guides?
I have read the SES Guide and have also tried addRoute
(':handler/:action') (in the routes.cfm I asume?). but then I got the
error that the method does not exist (!)
Under the paragraph "Convention name-value pairs" I read:
ColdBox introduces name-value pairs by convention by inspecting the
incoming URL. This means that after a route has been matched and there
are still values in the request string, the interceptor will try to
create name-value pairs out of them. Example, if we have the following
Then if we have the following url: index.cfm/users/list/page/2/issues/
5 Then the interceptor would route it to the event = users.list and
nothing more. With convention name-value pairs, the interceptor will
try to create name-value pairs from the remaining string, in our case:
page/2/issues/5. So the interceptor will create the following
variables in the request collection for you, without YOU doing
page = 2
issues = 5
So my question is how do I activate this magic behavior?
I have also updated the buildLink to accept querys as argument:
event.buildLink('admin.ehBanner.dspBanner',True,False,' ' ,'bannerid =