1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    83
    Vote Rating
    3
    gabrielle is on a distinguished road

      0  

    Default GET model although application is built

    GET model although application is built


    Hello,

    I have an MVC app running fine.
    I have a built made with the SDK 1.2.1. When running the built application, I can see that there is an HTTP request to get my models : GET /my/path/myAppName/model/Mymodel.js?_dc=1309635234663 HTTP/1.1.

    Why is it so, since my model is already included in all-classes.js?!!

    Note: this is not even the right request to get the model. So the request never gets answered (404 Not Found) and my app does not perform as expected...
    When running the non-built version (with the loader), the request is
    GET /my/path/app/model/Mymodel.js?_dc=1309637403313 HTTP/1.1

    Thank you for your help

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    83
    Vote Rating
    3
    gabrielle is on a distinguished road

      0  

    Default


    OK, interesting pb here.

    1- I have an HTTP GET because I use an explicit Ext.require() for my model.
    2- the use of an explicit Ext.require() seems to be required as shown here.

    Conclusion:
    - if I don't use an explicit require, my app does not work at all
    - if I do, my app work, but the built version does not.



    I have solved the pb manually by editing the all-classes.js file (replace Ext.require by model.js content)

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    73
    Vote Rating
    0
    JanVenekamp is on a distinguished road

      0  

    Default


    Maybe syncRequire ?

  4. #4
    Sencha User
    Join Date
    Aug 2010
    Posts
    83
    Vote Rating
    3
    gabrielle is on a distinguished road

      0  

    Default


    Thank you JanVenekamp.
    Finally, I could solve my pb by following this hint.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar