title: How to apply a MVC architecture to a ExtJS project?
body: <p>I would like to build a web project, using ExtJS, the famous JavaScript library. The goal is to use only ExtJS (and some CSS and HTML) to build the entire client-side web application. I also would like to apply a Model-View-Controller structure to the code of this project.</p>
  
  <p>First question: is it possible and pertinent to apply such an architecture to an ExtJS project?</p>
  
  <p>Second question: how can I easily apply a MVC architecture to a ExtJS project?</p>
  
  <p>I already read <a href="https://stackoverflow.com/questions/63035/best-way-to-organize-an-extjs-project">this</a> but it does not answer my questions.</p>
  
  <p>The documentation from the ExtJS community does not provide such tips.
  In all given samples, code is contained in one single file, and UI code is not separated from the application logic code. For example, listeners methods and calls to server come along with UI code.</p>
  
  <p>In fact, all tips to separate application logic from user interface code are welcomed.</p>
  
  <h2>Edit</h2>
  
  <p>Another question: What do you think is the best way to design a ExtJS based web application? I did not found any good designer for ExtJS. The designers I found (<a href="http://www.projectspace.nl/" rel="nofollow noreferrer">this</a> and <a href="http://code.google.com/p/extbuilder/" rel="nofollow noreferrer">this</a>) don't seem to be reliable (code generation of the first sometimes fails).</p>