Where is the validateModel() method defined? Can you provide a stack trace?
Also, a couple pointers–
I think you’re mixing things that need to be set once per app initialization and once per page request. Settings, when set, are saved for the duration of the app and shared by all users. The event.setSESBaseURL needs to be set on every request. (I use a preProcess for that).
Also, is your expectation that all users of your app will share the same settings as the first person to hit the app? If multiple people are going to be hitting domain A and B at the same time, changing the settings won’t help-- not even if you do it on preProcess since settings are shared by everyone. Two concurrent requests will be overwriting each other. Now, if you are dynamically changing the ColdFusion application name (in application.cfc) based on the host name, then that will work, but keep in mind that from a memory point of view, you will have multiple copies of the ColdBox Framework in memory with different application names. If you only plan on having a single application-scope, then you’ll need to find some other way to override your external locations for each user.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com