Thanks for the reply..
I have one more question..
I tried the sample which is given in the following link:
http://developer.yahoo.com/cocktails/mojito/docs/code_exs/htmlframe_view.html It was working.Now I want to change the controller's affinity to client. So I did the following steps:
- Renamed controller.server.js to controller.client.js
- Set deploy property to true in appllication.json file
After that it was not working.Can you please tell me what is wrong in the above steps. The error details are enclosed below:
Error 404: Mojit controller prototype is not an object! (mojit id: 'undefined')
Error: Mojit controller prototype is not an object! (mojit id: 'undefined')
at Object.init (/opt/EPG/lib/node_modules/mojito/lib/app/autoload/controller-context.common.js:46:25)
at Object.ControllerContext (/opt/EPG/lib/node_modules/mojito/lib/app/autoload/controller-context.common.js:21:14)
at Object.<anonymous> (/opt/EPG/lib/node_modules/mojito/lib/app/autoload/dispatch.common.js:246:30)
at [object Object]._notify (/opt/EPG/lib/node_modules/mojito/node_modules/yui3/node_modules/yui3-core/build/yui/yui-min.js:7:5959)
at [object Object].__use (/opt/EPG/lib/node_modules/mojito/node_modules/yui3/node_modules/yui3-core/build/yui/yui-min.js:7:5669)
at [object Object].use (/opt/EPG/lib/node_modules/mojito/node_modules/yui3/lib/node-yui3.js:637:24)
at runMojit (/opt/EPG/lib/node_modules/mojito/lib/app/autoload/dispatch.common.js:286:45)
at /opt/EPG/lib/node_modules/mojito/lib/app/autoload/dispatch.common.js:351:21
at /opt/EPG/lib/node_modules/mojito/lib/app/autoload/resource-store-adapter.common.js:115:21
at /opt/EPG/lib/node_modules/mojito/lib/store.server.js:414:13
QUOTE
(Fabian Frank @ 15 May 2012 10:55 AM)I don't think that ac.params can be used like that. You should consider using ac.params.getFromMerged or something similar. Please check this link for details:
http://developer.yahoo.com/cocktails/mojito/docs/code_exs/query_params.html