SES-Mode Independence Code: event.buildLink(): Hooray ! setNextEvent()/setNextRoute(): The struggle continues ?

I've just read about the best method in the world:
'event.buildLink()':
  "The best way to automating the writing of the links in your
application is to use the event.buildLink() method that is available
in the event object. This method is used to create links for you
whether you are in SES mode or not. The other cool thing, is that you
can keep your event notation and the method will translate it to
routes for you."

That really sounds quite reasonable to me ...

But what about SES-Mode independent event handling ? I've just seen
the following example:
- <cfset setNextRoute("handler/action")>
- <cfset setNextEvent('handler.action')>

Must I code against SES-Mode a priori using 'setNextRoute()' ? That
would be not so good ...

I stick with setNextEvent() as it does work with both, the other I though
was going to be deprecated.

Regards,
Andrew Scott
http://www.andyscott.id.au/

From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com] On
Behalf Of verlsnake
Sent: Thursday, 30 June 2011 9:52 PM
To: ColdBox Platform
Subject: [coldbox:10598] SES-Mode Independence Code: event.buildLink():
Hooray ! setNextEvent()/setNextRoute(): The struggle continues ?

I've just read about the best method in the world:
'event.buildLink()':
  "The best way to automating the writing of the links in your
application is to use the event.buildLink() method that is available in

the

event object. This method is used to create links for you whether you are

in

SES mode or not. The other cool thing, is that you can keep your event
notation and the method will translate it to routes for you."

That really sounds quite reasonable to me ...

But what about SES-Mode independent event handling ? I've just seen the
following example:
- <cfset setNextRoute("handler/action")>
- <cfset setNextEvent('handler.action')>

Must I code against SES-Mode a priori using 'setNextRoute()' ? That would

be

Set next route is deprecated. Setnextevent is all you need

Luis Majano
President
Ortus Solutions, Corp
Toll free phone/fax: 1-888-557-8057
Mobile: 909-248-3408

www.coldbox.org

That sounds good ! Probably I got irritated by some examples ...

The docs already say the following about setNextEvent():
  "The setNextEvent method can be used for both normal and SES
URLs ..."

So it should be possible to switch back and forth between SES- and non-
SES-Mode without hassle ? If one always uses 'buildLink' and
'setNextEvent' ?