Deft JS: Loosely Coupled MVC through Dependency Injectionhttp://www.sencha.com/blog/deftjs-loosely-coupled-mvc-through-dependency-injection
That application you just deployed? As experienced software developers, we all know it won’t be long before you’re going to need make to significant UI changes. Regardless of the amount of painstaking forethought, consensus gathering and planning backing it, no software design ever survives first contact with its users unscathed. To deliver truly effective software, we have to be prepared to adapt to an evolving understating of our users’ needs.en-usmarketing@sencha.comCopyright 20122012-05-14T13:50:00+00:00Comment by VidonGood Post, Good Job!Good Post, Good Job!]]>Thu, 21 Jun 2012 16:51 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31716#date:16:51Comment by John YanarellaFor those wondering, Neil’s question about injecting a reference to the application was answered here:
https://github.com/deftjs/DeftJS/issues/21For those wondering, Neil’s question about injecting a reference to the application was answered here:

]]>Sun, 17 Jun 2012 18:43 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31688#date:18:43Comment by John YanarellaAndrei,
1) Looks like Neil already pitched in with a great answer here.&nbsp; Thanks, Neil!
2) Unfortunately, Sencha Architect does not currently support Deft JS.&nbsp; I’m not sure Deft JS even existed at the time they began development of that tool.&nbsp; Feel free to let Sencha know you’d be interested in seeing support for Deft JS and other third-party libraries in future releases of Sencha Architect.&nbsp; We’d love to see this, too.
3) What kinds of exceptions are you interested in dealing with?&nbsp; One of the other tentpole features of Deft JS (not discussed in this article) is Deferreds / Promises.&nbsp; This feature allows developers to write methods that return a placeholder for a future value, and chain multiple asynchronous operations and transform their results into that resultant value using very natural syntax.&nbsp; Included among those capabilities is the ability to handle and recover from an error that occurs within a chain of asynchronous operations. This portion of Deft JS is still in development, but you’ll be hearing a lot more about it soon.Andrei,

1) Looks like Neil already pitched in with a great answer here. Thanks, Neil!

2) Unfortunately, Sencha Architect does not currently support Deft JS. I’m not sure Deft JS even existed at the time they began development of that tool. Feel free to let Sencha know you’d be interested in seeing support for Deft JS and other third-party libraries in future releases of Sencha Architect. We’d love to see this, too.

3) What kinds of exceptions are you interested in dealing with? One of the other tentpole features of Deft JS (not discussed in this article) is Deferreds / Promises. This feature allows developers to write methods that return a placeholder for a future value, and chain multiple asynchronous operations and transform their results into that resultant value using very natural syntax. Included among those capabilities is the ability to handle and recover from an error that occurs within a chain of asynchronous operations. This portion of Deft JS is still in development, but you’ll be hearing a lot more about it soon.

]]>Sun, 17 Jun 2012 18:39 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31687#date:18:39Comment by John YanarellaSebastien,
You might well not need it. We definitely do not advocate Deft JS as the one-size-fits-all solution to all web interactivity - in some cases it might be overkill. It is best suited for large scale single page applications where the UI is significantly dynamic. View Controllers allow a separation between the definition of the view, and the underlying logic for coordinating the state of subcomponents of that view and subsequent delegation of work to business logic components. They are not an invention of Deft JS, and similar implementations can be found in most modern application frameworks. For larger applications with dynamic user interfaces, this separation of responsibilities can be critical for developing a manageable and maintainable code base.Sebastien,

You might well not need it. We definitely do not advocate Deft JS as the one-size-fits-all solution to all web interactivity - in some cases it might be overkill. It is best suited for large scale single page applications where the UI is significantly dynamic. View Controllers allow a separation between the definition of the view, and the underlying logic for coordinating the state of subcomponents of that view and subsequent delegation of work to business logic components. They are not an invention of Deft JS, and similar implementations can be found in most modern application frameworks. For larger applications with dynamic user interfaces, this separation of responsibilities can be critical for developing a manageable and maintainable code base.

]]>Sun, 17 Jun 2012 18:23 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31686#date:18:23Comment by Neil@Andrei
Q: 1.How is this simpler than the ExtJS MVC? That one is already overly complicated and many users don’t use it since it brings more problems than it tries to solve.
A: Ext controllers are weird in that you have one controller but multiple views. This means you should never store a reference to the view, making the whole refs feature useless. The Deft controllers are one controller per view instance, meaning you can store state in the controller if you want. It’s much less work to create a getter for a view sub-object and to handle its events.@Andrei

Q: 1.How is this simpler than the ExtJS MVC? That one is already overly complicated and many users don’t use it since it brings more problems than it tries to solve.

A: Ext controllers are weird in that you have one controller but multiple views. This means you should never store a reference to the view, making the whole refs feature useless. The Deft controllers are one controller per view instance, meaning you can store state in the controller if you want. It’s much less work to create a getter for a view sub-object and to handle its events.

]]>Sun, 17 Jun 2012 18:04 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31685#date:18:04Comment by MauroThanks JohnThanks John]]>Sun, 17 Jun 2012 16:54 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31684#date:16:54Comment by John YanarellaMauro,
I haven’t tried integrating with Ext.ux.RoutedApp, but I can’t think of any reason why it shouldn’t work.&nbsp; You could potentially omit the controllers configuration and use Deft’s ViewControllers (or use both if you’d also like to use view-less application-level controller).&nbsp; As with integrating with Ext.app.Application, I would recommend configuring your IoC container in Ext.onReady() rather than in RoutedApplication::launch() because any controllers, stores specified via the ‘stores’ or ‘controllers’ configs will be instantiated in the constructor before your launch method is called.&nbsp; Otherwise, any dependencies those controllers or stores might have will not be fulfilled because the IoC container will not have been configured yet.Mauro,

I haven’t tried integrating with Ext.ux.RoutedApp, but I can’t think of any reason why it shouldn’t work. You could potentially omit the controllers configuration and use Deft’s ViewControllers (or use both if you’d also like to use view-less application-level controller). As with integrating with Ext.app.Application, I would recommend configuring your IoC container in Ext.onReady() rather than in RoutedApplication::launch() because any controllers, stores specified via the ‘stores’ or ‘controllers’ configs will be instantiated in the constructor before your launch method is called. Otherwise, any dependencies those controllers or stores might have will not be fulfilled because the IoC container will not have been configured yet.

]]>Sun, 17 Jun 2012 16:34 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31683#date:16:34Comment by Andrei I.This all looks very nice and interesting, however from my point of view there are a few things I couldn’t figure out:
1.How is this simpler than the ExtJS MVC? That one is already overly complicated and many users don’t use it since it brings more problems than it tries to solve.
2.How to use it with Ext Designer or Sencha Architect? If the users generate(and update) allot of their code with those two Sencha products, how to integrate DeftJS in the scheme? The tools allow to edit code manually at some points, but those are restricted (to be able to update), so where does the DeftJS code fit in?
3. As other users already mentioned, what about exception handling? I found no really good example how to do it consistently in the entire application with or without DeftJS :(.This all looks very nice and interesting, however from my point of view there are a few things I couldn’t figure out:
1.How is this simpler than the ExtJS MVC? That one is already overly complicated and many users don’t use it since it brings more problems than it tries to solve.
2.How to use it with Ext Designer or Sencha Architect? If the users generate(and update) allot of their code with those two Sencha products, how to integrate DeftJS in the scheme? The tools allow to edit code manually at some points, but those are restricted (to be able to update), so where does the DeftJS code fit in?
3. As other users already mentioned, what about exception handling? I found no really good example how to do it consistently in the entire application with or without DeftJS :(.
]]>Sun, 17 Jun 2012 12:24 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31682#date:12:24Comment by Sebastien TardifI don’t see how having a view hardcoding the controller concrete class is an improvement. I think we are trying to solve problem that doesn’t exist. YAGNI.I don’t see how having a view hardcoding the controller concrete class is an improvement. I think we are trying to solve problem that doesn’t exist. YAGNI.]]>Fri, 15 Jun 2012 07:12 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31681#date:07:12Comment by Shay KatzHi,
I have a container(my view) that contains a form that contains some items.
It it possible to inject(using the control annotation) some of the items(e.g : the submit button) that reside inside the form?
Thanks,
ShayHi,

I have a container(my view) that contains a form that contains some items.
It it possible to inject(using the control annotation) some of the items(e.g : the submit button) that reside inside the form?

Thanks,
Shay

]]>Thu, 14 Jun 2012 19:29 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31680#date:19:29Comment by Mauro SilvaHi,
Sorry about my question, but I want to Know, if I can use (and make sense) Deftjs with RoutedApp (https://github.com/christocracy/RoutedApp)?
ThanksHi,
Sorry about my question, but I want to Know, if I can use (and make sense) Deftjs with RoutedApp (https://github.com/christocracy/RoutedApp)?
Thanks]]>Tue, 12 Jun 2012 10:58 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31659#date:10:58Comment by sexy summerBut the station is yet to be resolved, JS, or chaos, and why. .
http://sexylingerietalk.blog.com/But the station is yet to be resolved, JS, or chaos, and why. .http://sexylingerietalk.blog.com/]]>Sun, 10 Jun 2012 10:12 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31649#date:10:12Comment by NeilIn Sencha’s controllers, I have a reference to application. I have been using this to fire and listen to app-wide events.
How do I do this using Deft? Thanks!In Sencha’s controllers, I have a reference to application. I have been using this to fire and listen to app-wide events.

How do I do this using Deft? Thanks!

]]>Fri, 08 Jun 2012 18:35 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31646#date:18:35Comment by John YanarellaMoshe, It’s interesting that you ask that.&nbsp; Someone on the Deft JS mailing list has been asking for some assistance in loosely coupling his view references (and his particular use case may well require a small enhancement to the framework to make it fully viable - we’re working through it).
You could potentially loosely couple your view references by configuring the IoC container to resolve alternative concrete view implementations for BIDI vs non-BIDI.&nbsp; However, you’ll lose a lot of the elegant expressiveness of the alias-based JSON-esque component descriptors used throughout Ext JS (such as with the Container.add() method and `items` configuration).&nbsp; That approach costs you quite a bit of convenience when it comes time to create the view instances.&nbsp; Unless you need to create and show different localized versions of views and have them visible at the same time within an application, I’d take another route.
Instead, I’d consider creating alternative localized implementations of each of your views, packaging each set of localized views into locale-specific auxilliary JavaScript files (loaded separately from Ext JS and the rest of your app), but using the same aliases across locales.&nbsp; Once you determine the user’s desired locale, you would load the file with the appropriate localized view implementations.&nbsp; If the fields and underlying logic themselves are the same, you could potentially even use the same Deft JS ViewController across various localized view implementations.
Additional capabilities explicitly designed to aid internationalization are on the Deft JS roadmap, but they are not currently scheduled to be part of the 1.0 release.Moshe, It’s interesting that you ask that. Someone on the Deft JS mailing list has been asking for some assistance in loosely coupling his view references (and his particular use case may well require a small enhancement to the framework to make it fully viable - we’re working through it).

You could potentially loosely couple your view references by configuring the IoC container to resolve alternative concrete view implementations for BIDI vs non-BIDI. However, you’ll lose a lot of the elegant expressiveness of the alias-based JSON-esque component descriptors used throughout Ext JS (such as with the Container.add() method and `items` configuration). That approach costs you quite a bit of convenience when it comes time to create the view instances. Unless you need to create and show different localized versions of views and have them visible at the same time within an application, I’d take another route.

Instead, I’d consider creating alternative localized implementations of each of your views, packaging each set of localized views into locale-specific auxilliary JavaScript files (loaded separately from Ext JS and the rest of your app), but using the same aliases across locales. Once you determine the user’s desired locale, you would load the file with the appropriate localized view implementations. If the fields and underlying logic themselves are the same, you could potentially even use the same Deft JS ViewController across various localized view implementations.

Additional capabilities explicitly designed to aid internationalization are on the Deft JS roadmap, but they are not currently scheduled to be part of the 1.0 release.

]]>Tue, 05 Jun 2012 22:21 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31634#date:22:21Comment by Moshe FlamFor internationalization - its usually not just the words being translated, but - in the case of BIDI languages like Hebrew, Arabic and Chinese, the controls are different for accepting text from right to left, spacers and layouts are different and there may even be expected differences in app behavior…
Would you recommend using this for internationalization?For internationalization - its usually not just the words being translated, but - in the case of BIDI languages like Hebrew, Arabic and Chinese, the controls are different for accepting text from right to left, spacers and layouts are different and there may even be expected differences in app behavior…

Would you recommend using this for internationalization?

]]>Mon, 04 Jun 2012 08:46 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31625#date:08:46Comment by Mikhail TatskyYes it is quite interesting.
DeftJS reminds me backbone.js
I also did my own js framework on Ext Core and some extentions from ExtJS.
It is here http://mtjs.org
It is ixtremely fast.
If I have sponsor that could supply my work during 8-16 month I would finish it up and get the world leading framework.
I would like implement UI like these
http://dribbble.com/shots/512508-Notifications
http://www.moreira.ch/
http://vectormill.com/ Yes it is quite interesting.
DeftJS reminds me backbone.js

I also did my own js framework on Ext Core and some extentions from ExtJS.
It is here http://mtjs.org
It is ixtremely fast.

]]>Thu, 31 May 2012 17:29 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31612#date:17:29Comment by John Yanarellaanon:
As a fellow Adobe Flex refugee, I’ve found both frameworks to be exciting alternatives in the HTML space.&nbsp; I’ve used both Angular JS and Ext JS and my preference for a given project would vary based on the complexity of the UI and associated UI componentry required.&nbsp; For single page applications with a desktop application style experience, with menus, trees, grids, etc. there is no question Ext JS is a clear winner.&nbsp; I recently participated in the development of a proof-of-concept application of that type that took 6 weeks (each for two developers) to develop in Angular JS that I was able to rewrite in 3 days with Ext JS and Deft JS.&nbsp; I love Angular’s MVVM implementation and transparent binding (its a beautiful implementation), however reinventing common UI component and adapting third-party components as directives is only viable when you only need a couple rich UI components that are outside the standard HTML suite of controls.&nbsp; Ext JS provides a rich suite of components with consistent APIs, implemented in an OOP fashion for easy extensibility. Deft JS brings an Ext JS-style implementation of the few key Angular JS features that Sencha’s frameworks lacked, such as an IoC container for dependency injection, view-scoped controllers and Promises/Deferreds.anon:

As a fellow Adobe Flex refugee, I’ve found both frameworks to be exciting alternatives in the HTML space. I’ve used both Angular JS and Ext JS and my preference for a given project would vary based on the complexity of the UI and associated UI componentry required. For single page applications with a desktop application style experience, with menus, trees, grids, etc. there is no question Ext JS is a clear winner. I recently participated in the development of a proof-of-concept application of that type that took 6 weeks (each for two developers) to develop in Angular JS that I was able to rewrite in 3 days with Ext JS and Deft JS. I love Angular’s MVVM implementation and transparent binding (its a beautiful implementation), however reinventing common UI component and adapting third-party components as directives is only viable when you only need a couple rich UI components that are outside the standard HTML suite of controls. Ext JS provides a rich suite of components with consistent APIs, implemented in an OOP fashion for easy extensibility. Deft JS brings an Ext JS-style implementation of the few key Angular JS features that Sencha’s frameworks lacked, such as an IoC container for dependency injection, view-scoped controllers and Promises/Deferreds.

]]>Wed, 23 May 2012 19:44 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31576#date:19:44Comment by John YanarellaI apologize that we have not been more responsive to questions posed in the comments on this blog.
A few of the questions here relate to Ext JS rather than Deft JS.
Rich02818:
Deft JS extends Ext JS with an IoC container for dependency injection, an ViewController-based MVC implementation and Promises/Deferreds.&nbsp; It is open-source and licensed under the very permissive MIT license.&nbsp; Feel free to contact me directly if you need alternative licensing terms.&nbsp;
While you can freely use Deft JS within a commercial product under those terms, Ext JS itself is separately licensed.&nbsp; You can refer to this page: http://www.sencha.com/products/extjs/license/ to learn more about their licensing terms.&nbsp; Sencha Touch is offered under a different licensing model: http://www.sencha.com/products/touch/license/.
magdy a aboud:
Your questions relate to Ext JS rather than Deft JS.&nbsp; You might try their support forums: http://www.sencha.com/forum/I apologize that we have not been more responsive to questions posed in the comments on this blog.

A few of the questions here relate to Ext JS rather than Deft JS.

Rich02818:

Deft JS extends Ext JS with an IoC container for dependency injection, an ViewController-based MVC implementation and Promises/Deferreds. It is open-source and licensed under the very permissive MIT license. Feel free to contact me directly if you need alternative licensing terms.

]]>Wed, 23 May 2012 19:38 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31575#date:19:38Comment by John YanarellaOzzy,
Deft JS is only a couple months old and currently in beta.&nbsp; We’re actively using it ourselves to deliver work for clients, but I’m sure you can empathize with the fact that we have to keep a roof over our heads and those projects have deadlines.&nbsp; Sadly, community support and evolution of the documentation for the framework itself is not our day job.&nbsp; As an MIT licensed open-source project, Deft JS is a gift to the Ext JS development community that originates from what spare hours are available in our nights and weekends.
We have a vision for what Deft JS will be and are actively pursuing it.&nbsp; We are very excited that Deft JS has already attracted as much interest as it has so early on in its life.&nbsp; In its current form, it already pushes the envelope for the kinds of applications you can build and deliver with Ext JS and Sencha Touch.&nbsp; We have more surprises in store.&nbsp; You ain’t seen nothin’ yet.
But in the meantime… we are working to move the core framework out of beta into version 1.0.&nbsp; This effort includes addressing key concerns that early users have reported, documenting and implementing tests for Deferreds and Promises (a feature of Deft JS not discussed here), improving documentation overall, developing meaningful examples, migrating to Sencha-style documentation (using JSDuck), and creating a revised project website (to replace the dressed-up README.md we have there currently).
No small order.&nbsp; But we’re up to the task.&nbsp; You just might have to wait a little while longer.
We are grateful that Sencha provided us this opportunity to announce the project to their community of developers via this blog.&nbsp; The response has been extraordinary and overwhelmingly positive, and the feedback has been immensely useful.&nbsp; We are excited that developers across the globe are already using this framework to build web and mobile applications.
We are even more excited that developers like Brian Kotek, Jacob Henry, Rowan Crawford, Josh Nesbit, Isaac Johnston and others have filed bug reports, offered suggestions and even contributed code to improve this project.&nbsp; Deft JS is an open-source effort, and as such thrives by community contribution.&nbsp; We’re excited that an active, contributing community is already emerging around this project.
Since this guest blog was posted here we have released multiple updates to the framework addressing issues filed on GitHub or discussed on our Google Groups forum.
You might be interested in the Deft JS Google Group:
&nbsp; http://groups.google.com/group/deftjs
We manage our project on GitHub:
&nbsp; https://github.com/deftjs
There you can find our latest source code and development branches, as well as file bug reports and track their progress.&nbsp; We’ve closed several issues and have multiple enhancements scheduled for upcoming releases.
https://github.com/deftjs/DeftJS/issues
Brian Kotek was kind enough to create and share a small example application on his blog:
&nbsp; http://www.briankotek.com/blog/index.cfm/2012/5/8/Exploring-ExtJS-with-DeftJS
While I wish we were able to provide you with a large-scale example application today, we are currently unable to do so.&nbsp; If I gave you the code for the intranet applications I’m developing currently for my employer’s clients, I suspect I’d end up with a lot more time to develop Deft JS but a much tougher time paying my bills.&nbsp; That said, we are aware that meaningful examples will be critical to ensure Deft JS’s long-term success and they are slated to be available as soon as we possibly can build them.
Best regards,
JohnOzzy,

Deft JS is only a couple months old and currently in beta. We’re actively using it ourselves to deliver work for clients, but I’m sure you can empathize with the fact that we have to keep a roof over our heads and those projects have deadlines. Sadly, community support and evolution of the documentation for the framework itself is not our day job. As an MIT licensed open-source project, Deft JS is a gift to the Ext JS development community that originates from what spare hours are available in our nights and weekends.

We have a vision for what Deft JS will be and are actively pursuing it. We are very excited that Deft JS has already attracted as much interest as it has so early on in its life. In its current form, it already pushes the envelope for the kinds of applications you can build and deliver with Ext JS and Sencha Touch. We have more surprises in store. You ain’t seen nothin’ yet.

But in the meantime… we are working to move the core framework out of beta into version 1.0. This effort includes addressing key concerns that early users have reported, documenting and implementing tests for Deferreds and Promises (a feature of Deft JS not discussed here), improving documentation overall, developing meaningful examples, migrating to Sencha-style documentation (using JSDuck), and creating a revised project website (to replace the dressed-up README.md we have there currently).

No small order. But we’re up to the task. You just might have to wait a little while longer.

We are grateful that Sencha provided us this opportunity to announce the project to their community of developers via this blog. The response has been extraordinary and overwhelmingly positive, and the feedback has been immensely useful. We are excited that developers across the globe are already using this framework to build web and mobile applications.

We are even more excited that developers like Brian Kotek, Jacob Henry, Rowan Crawford, Josh Nesbit, Isaac Johnston and others have filed bug reports, offered suggestions and even contributed code to improve this project. Deft JS is an open-source effort, and as such thrives by community contribution. We’re excited that an active, contributing community is already emerging around this project.

Since this guest blog was posted here we have released multiple updates to the framework addressing issues filed on GitHub or discussed on our Google Groups forum.

There you can find our latest source code and development branches, as well as file bug reports and track their progress. We’ve closed several issues and have multiple enhancements scheduled for upcoming releases.

While I wish we were able to provide you with a large-scale example application today, we are currently unable to do so. If I gave you the code for the intranet applications I’m developing currently for my employer’s clients, I suspect I’d end up with a lot more time to develop Deft JS but a much tougher time paying my bills. That said, we are aware that meaningful examples will be critical to ensure Deft JS’s long-term success and they are slated to be available as soon as we possibly can build them.

Best regards,

John

]]>Wed, 23 May 2012 19:19 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31574#date:19:19Comment by Ozzyis this project dead??&nbsp; No responses from the owner(s) in a month.&nbsp; Without a viable community there isn’t much point in pursuing this framework.
is this project dead?? No responses from the owner(s) in a month. Without a viable community there isn’t much point in pursuing this framework.]]>Wed, 23 May 2012 17:57 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31573#date:17:57Comment by carlacurtis218This is a great information… Thanks for sharing!This is a great information… Thanks for sharing!]]>Wed, 23 May 2012 05:16 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31568#date:05:16Comment by Troy RoseWhat sort of safe guards have been put around the security of the framework, eg, SQL Injection and so forth.
Other than my concerns about that, I think it looks very promising and will have to give it a go!
Troy
http://www.osisecurity.com.auWhat sort of safe guards have been put around the security of the framework, eg, SQL Injection and so forth.

Other than my concerns about that, I think it looks very promising and will have to give it a go!

]]>Mon, 21 May 2012 00:47 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31554#date:00:47Comment by Fredric@Babar
Here is another approach:
https://github.com/Fredric/ExtJS-Multiple-MVC
Gives you the ability to specify a control array on any view.
Just clone the stuff right into the sencha example folder.@Babar
Here is another approach:https://github.com/Fredric/ExtJS-Multiple-MVC
Gives you the ability to specify a control array on any view.

Just clone the stuff right into the sencha example folder.

]]>Fri, 18 May 2012 05:26 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31541#date:05:26Comment by BabarLooks good but its very hard to use it without any examples I am trying to load controllers dynamically but unable to do, I have no idea how can I use it.Looks good but its very hard to use it without any examples I am trying to load controllers dynamically but unable to do, I have no idea how can I use it.]]>Thu, 17 May 2012 12:31 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31539#date:12:31Comment by Rich02818Is there a commercial license available so that this might be usable in a commercial product?Is there a commercial license available so that this might be usable in a commercial product?]]>Wed, 16 May 2012 16:16 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31534#date:16:16Comment by Tony SteeleJust spotted this:
http://www.briankotek.com/blog/index.cfm/2012/5/8/Exploring-ExtJS-with-DeftJS
Includes a downloadable application, will give it a try.Just spotted this:

]]>Tue, 15 May 2012 13:52 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31528#date:13:52Comment by Tony SteeleTo anon - is this appropriate , tons of mvc frameworks around, this unique as it enhances ExtJs.
Otherwise, try to quickly get it to work within my existing application , did not succeed, would help alot if you had a simple working example included in the code, a window with Hello World would help.To anon - is this appropriate , tons of mvc frameworks around, this unique as it enhances ExtJs.

Otherwise, try to quickly get it to work within my existing application , did not succeed, would help alot if you had a simple working example included in the code, a window with Hello World would help.

]]>Tue, 15 May 2012 12:08 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31526#date:12:08Comment by anonHave you looked at AngularJS, it looks a lot more elegant than DeftJS, does far more with less, and has an underlying philosopy very similar to Flex…it almost makes HTML work like MXMLHave you looked at AngularJS, it looks a lot more elegant than DeftJS, does far more with less, and has an underlying philosopy very similar to Flex…it almost makes HTML work like MXML]]>Tue, 15 May 2012 11:33 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31525#date:11:33Comment by magdy a aboudI want to buy the Ext JS 4.1 software to use it with vb.net asp.net
I need an example about how to use ext-4.1 =&gt; menu bare With vb.net2008 asp.net And write code to open deferent forms - from the vb.net default form after adding the java screpte file and the css file to the project
Best RegardsI want to buy the Ext JS 4.1 software to use it with vb.net asp.net
I need an example about how to use ext-4.1 => menu bare With vb.net2008 asp.net And write code to open deferent forms - from the vb.net default form after adding the java screpte file and the css file to the project

Best Regards

]]>Wed, 09 May 2012 06:10 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31473#date:06:10Comment by H.W.How does “Error Handling” fit into the scheme with DeftJS? I couldn’t find any working example for one of the followings:
- handling in the client of the serverside errors - e.g. SQL exceptions, other serverside exceptions that affect one of the ajax requests, or simply not acceptable delays.
- handling in the client of the transport/communication errors (and maybe too big delays - timeout just does not do it).
- general exceptions (catch/try/rethrow - but how and where).
Thanks in advance.How does “Error Handling” fit into the scheme with DeftJS? I couldn’t find any working example for one of the followings:
- handling in the client of the serverside errors - e.g. SQL exceptions, other serverside exceptions that affect one of the ajax requests, or simply not acceptable delays.
- handling in the client of the transport/communication errors (and maybe too big delays - timeout just does not do it).
- general exceptions (catch/try/rethrow - but how and where).

Thanks in advance.

]]>Fri, 04 May 2012 07:58 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31460#date:07:58Comment by Andrei IonescuI subscribe to Ozzy’s request. Are there any real world examples that can be used?
A blog post is barely enough to base the entire architecture of an application upon.
Thnx.I subscribe to Ozzy’s request. Are there any real world examples that can be used?
A blog post is barely enough to base the entire architecture of an application upon.

Thnx.

]]>Thu, 03 May 2012 19:23 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31455#date:19:23Comment by OzzyThis looks like it might be a big help to build real applications with extjs.&nbsp; Do you have a real world example that demonstrates this architecture in action?&nbsp; It would be useful to see an example that puts it all together.
This looks like it might be a big help to build real applications with extjs. Do you have a real world example that demonstrates this architecture in action? It would be useful to see an example that puts it all together.
]]>Wed, 02 May 2012 16:20 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31445#date:16:20Comment by Axelboom! nice!boom! nice!]]>Thu, 26 Apr 2012 01:39 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31369#date:01:39Comment by Ben HornedoVery good stuff. Great work John!Very good stuff. Great work John!]]>Wed, 25 Apr 2012 18:30 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31352#date:18:30Comment by FlexodusFor those who are just getting started in DI, it would be very helpful to show the equivalent code without DI so they can see the benefits.For those who are just getting started in DI, it would be very helpful to show the equivalent code without DI so they can see the benefits.]]>Wed, 25 Apr 2012 15:04 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31343#date:15:04Comment by K.The view controller stuff was exactly was I was searching for.
When I split my app into modules, it would be nice to just put an xtype of a module-view into the main app and it gets loaded automagically with it’s needed controller.The view controller stuff was exactly was I was searching for.
When I split my app into modules, it would be nice to just put an xtype of a module-view into the main app and it gets loaded automagically with it’s needed controller.]]>Wed, 25 Apr 2012 13:52 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31338#date:13:52Comment by GrgurSweet! Can’t wait to get my hands dirty with itSweet! Can’t wait to get my hands dirty with it]]>Wed, 25 Apr 2012 13:22 GMThttp://www.sencha.com/blog//deftjs-loosely-coupled-mvc-through-dependency-injection#id:31336#date:13:22