1. #11
    Ext GWT Premium Member
    Join Date
    Oct 2009
    Posts
    131
    Vote Rating
    5
    zlevardy is on a distinguished road

      0  

    Default


    strange, I have lost my previous post as "token expired". hmmm.

  2. #12
    Ext GWT Premium Member
    Join Date
    Oct 2009
    Posts
    131
    Vote Rating
    5
    zlevardy is on a distinguished road

      0  

    Default


    ok. let's try it again.

    Can I direct sencha app build to make its "build" folder somewhere else? It is just messing into my webapp structure. It is CVS.

    Built file: what do I need from the made build folder and files to package into my war archive? The structure is the next:
    Code:
      +webapp <----------- this is MyApp
           +app
           +build
               +MyApp
                       +production
                               all-classes.js
                               +ext
                                     +src
                                            +ux
                               +resources
                                     +default
                                     theme-capture.json
                                     thema-capture.png
    The question is now, what files needed to be added into my War archive from this build folder? Somehow I dont get the point having webapp/build/ext and webapp/ext as well. Also having resources under webapp and webapp/build/.

    thanks

  3. #13
    Ext GWT Premium Member
    Join Date
    Oct 2009
    Posts
    131
    Vote Rating
    5
    zlevardy is on a distinguished road

      0  

    Default What is all-classes.js ?

    What is all-classes.js ?


    hi,

    unable to make a working build. I have generated a skeleton by sencha app generate, it is fine. Then I have merged my existing curls, models and views, and merged app.js. Then sencha app build is working, or at least doing something and producing lots of output. A file called all-classes.js created, I hoped this is the minified all-in-one js, but not.
    Do I need to execute any command for sencha to know about my additional controllers, view and models? My app.js is 5450bytes, all-classes.js is 5230bytes.

    thx

  4. #14
    Ext GWT Premium Member
    Join Date
    Oct 2009
    Posts
    131
    Vote Rating
    5
    zlevardy is on a distinguished road

      0  

    Default all-classes finally generated, but....

    all-classes finally generated, but....


    hi,

    finally was able to get cmd v3 to generate the all-classes files, what more looking an all-in-one. The size is now 1.2 megabytes. Now, I am having a strange issue - what works perfect in dev mode, but not in compile to production all-classes. A logon manager is defines such as in app.js:
    Code:
    MyTestApp.LogonManager = new Ext.state.CookieProvider({    expires: new Date(new Date().getTime()+(1000*60*60*24*365)) //365 days
    });
    Loading app.js and ext-all for development in exploded format, whole logic is correct and working. But once trying to launch by production all-classes, it complains as LogonManager not found....

    my app.js contains this:
    Code:
    Ext.application({
        requires:[
    'Ext.state.*',
    any other hint for investigating this issue?

    error from firebug:
    TypeError: MyTestApp.LogonManager is undefined
    thx

Thread Participants: 1