1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    3
    Vote Rating
    0
    geogeek is on a distinguished road

      0  

    Default How to use Extjs with Spring

    How to use Extjs with Spring


    I'm so sorry if my question seems to be so simple, but i'm stuck i'm starting to work in a project involving Spring MVC, Extjs 5 and ExtDirect for binding, the guides of extjs recommends using Sencha Cmd to create what seems to be an isolated project, but i imagine that my Js project should be included in the WEB_INF for the Spring project, to avoid CORS limitations during tests&dev. or should i develope in the old way without Sencha CMD?
    if possible what are the main benefits of Sencha CMD ?
    i think i'm missing some best practices in this context, any advices are welcomed.

  2. #2
    Sencha - Support Team
    Join Date
    Nov 2014
    Posts
    323
    Vote Rating
    10
    joel.watson will become famous soon enough

      0  

    Default


    Quote Originally Posted by geogeek View Post
    I'm so sorry if my question seems to be so simple, but i'm stuck i'm starting to work in a project involving Spring MVC, Extjs 5 and ExtDirect for binding, the guides of extjs recommends using Sencha Cmd to create what seems to be an isolated project, but i imagine that my Js project should be included in the WEB_INF for the Spring project, to avoid CORS limitations during tests&dev. or should i develope in the old way without Sencha CMD?
    if possible what are the main benefits of Sencha CMD ?
    i think i'm missing some best practices in this context, any advices are welcomed.
    Hi geogeek--

    You can create your Ext JS project wherever makes the most sense for your purposes. Sencha Cmd has a lot of benefits, such as generating applications, generating views/models/stores, managing application classes and resources, creating and managing themes, creating and managing custom packages, etc. This is all in addition to using it to prepare your application files for production.

    Have you run into specific issues with creating your app with Cmd?

    Thanks!

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    3
    Vote Rating
    0
    geogeek is on a distinguished road

      0  

    Default


    i've generated the app in WEB-INF but i'm stuck now in finding an example of using spring and extjs and Ext direct, so i need some config to make it work, and i think that the extjs project should be located in resources. do you have any idea about using extjs in spring project ?

  4. #4
    Sencha - Support Team
    Join Date
    Nov 2014
    Posts
    323
    Vote Rating
    10
    joel.watson will become famous soon enough

      0  

    Default


    There should be lots of resources available, as I know many have done this. One resource I'd especially encourage you to check out is this library: https://github.com/ralscha/extdirectspring It has examples, demos, and configuration guidance.

    Thanks!

Thread Participants: 1