1. #1
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    928
    Vote Rating
    48
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default Now Ext.Router is no more...

    Now Ext.Router is no more...


    ... are we still meant to be able to go to page.html#action?

    If not, how is the single page model meant to work?
    If so, how?

    Are users meant to be able to bookmark specific 'pages'?

    Cheers,
    Westy

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Have you checked out the new Ext.util.History class? There is also a good example in the download under Miscellaneous
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    928
    Vote Rating
    48
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    Oh, I see it.

    So we now have to do it by hand. Looks like will have more control though, but it's still more work to do...

    Thanks for the heads up.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by westy View Post
    Oh, I see it.

    So we now have to do it by hand. Looks like will have more control though, but it's still more work to do...

    Thanks for the heads up.
    Work is fun!!!! It's more powerful but wish it was still hooked into Ext.app.Application. If you search for it it says there is a config to useHistory but I can't find it in the source at all.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Ext JS Premium Member
    Join Date
    Aug 2011
    Location
    Houston, Texas
    Posts
    1
    Vote Rating
    0
    prosdev02 is on a distinguished road

      0  

    Exclamation ExtJS Router?

    ExtJS Router?


    I can see that Sencha Touch & 2.0 is receiving all of the Router love. How can we accomplish the same thing using ExtJS 4.0 or 4.1? Is there a planned return in the future?

    Explicitly coding in ALL of that logic into the Ext.util.History is dirty!

    I love ExtJS' new MVC patterns; however, Routes are one of the key advantages of several other JavaScript MVC frameworks (Backbone.js).

  6. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Hopefully it will although our minds are focused on bug fixing and getting performance where it should for 4.1.0 GA release.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  7. #7
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Would be nice to see some MVC unification btwn Ext 4 and ST2. :-\

  8. #8
    Sencha Premium Member
    Join Date
    Dec 2009
    Location
    Rhode Island
    Posts
    231
    Vote Rating
    23
    dmulcahey will become famous soon enough dmulcahey will become famous soon enough

      0  

    Default


    +1 I have been actively working on a few Ext 4 MVC projects and the features from ST 2's MVC would be a welcome addition. I also agree that performance should be the priority though... All of the apps I am working on run on a corporate intranet and my company only supports IE8

  9. #9
    Sencha User
    Join Date
    Nov 2011
    Location
    Toronto
    Posts
    105
    Vote Rating
    2
    basememara is on a distinguished road

      0  

    Default


    +1 for the router in Ext JS and +999 for Ext JS / Touch code unification.

    I needed a router badly because my MVC was becoming unmanageable, so I ended up using PathJS:
    https://github.com/mtrpcic/pathjs

    Code:
    Ext.application({
    ...
            launch: function() {
                this.routeToAction();
            },
            
            routeToAction: function() {
                var controller = this.getController('Product');
                
                //TODO: USE PATH.JS LIBRARY UNTIL EXT JS 4.1 RELEASES ROUTER!
                Ext.Loader.injectScriptElement('lib/pathjs/path.min.js', function() {
    
    
                    Path.map("#/product/:id").to(function(){
                        var id = this.params["id"];
                        controller.productDetail(id);
                    });
    
    
                    Path.listen();
                }, null, this);
            }
    });
    Not bad actually, but I am hoping to phase it out when Ext.Router gets re-released!

  10. #10
    Sencha User
    Join Date
    Nov 2011
    Location
    Toronto
    Posts
    105
    Vote Rating
    2
    basememara is on a distinguished road

      1  

    Default


    Check out this blog post I wrote on MVC and routing in Ext JS 4:
    http://blog.falafel.com/blogs/basememara/12-02-17/Building_a_Javascript_MVC_App_using_Sencha_Ext_JS.aspx

    It shows how to achieve MVC routing until Ext.Router comes back.

Similar Threads

  1. Ext.Direct .NET Router
    By evant in forum Ext.Direct
    Replies: 238
    Last Post: 10 Sep 2012, 1:09 AM
  2. How to pass to Ext.Router URL with parameters?
    By alexerm in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 5 Mar 2011, 6:31 PM
  3. [FIXED-623] 1.0.1 Documentation bug: Ext.Router
    By donp in forum Sencha Touch 1.x: Bugs
    Replies: 5
    Last Post: 25 Jan 2011, 10:44 PM
  4. Spring3 MVC Ext.Direct Router
    By MoShAn480 in forum Ext.Direct
    Replies: 4
    Last Post: 20 Feb 2010, 1:12 AM
  5. Direct Router for AIR
    By CutterBl in forum Ext.Direct
    Replies: 0
    Last Post: 20 May 2009, 2:49 AM

Thread Participants: 6