1. #1
    Sencha User
    Join Date
    Jan 2009
    Posts
    10
    Vote Rating
    0
    mandro is on a distinguished road

      0  

    Lightbulb ExtJs HMVC

    ExtJs HMVC


    I was working to extend Ext.application from MVC to HMVC.
    I show an example builded with HMVC architecture.

    The application contains bundles, its has the same folder structure like application.
    The bundle's controllers has the same application bus event.
    The bundles have optional main view to be injected in application viewport (shell) by a defined placeholder. (I use Ext.ComponentQuery to view-discovery, view-injection).

    http://msdn.microsoft.com/en-us/libr...ndp.20%29.aspx
    Attached Files

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    847
    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


    I would put this up on GitHub. People like me like to read code without downloading code.
    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
    Sencha User
    Join Date
    Jan 2009
    Posts
    10
    Vote Rating
    0
    mandro is on a distinguished road

      0  

    Wink


    Ok great

  4. #4
    Sencha Premium Member lorezyra's Avatar
    Join Date
    Dec 2007
    Location
    Japan -- 日本
    Posts
    638
    Vote Rating
    18
    lorezyra will become famous soon enough lorezyra will become famous soon enough

      0  

    Default


    Do you have a github (or http://code.google.com) link yet?
    Perfection as a goal is a nice idea that can point one in a specific direction. However, since "perfection" is an ever changing (evolving?) and moving target, one must admit that perfection can never be obtained...

    When in doubt, check the d4mn source code!
    ================================================
    And here are my terms...
    1. I don't care if you use my source code. (Known as "Code.")
    2. I don't care if I get any monetary compensation.
    3. I do care to receive credit for Code provided. So, please keep my name in the comments for Code provided.
    4. Code is provided without warranty "AS-IS" and I claim absolutely no warranty nor liability to the quality, security, and run-ability on any platform.
    5. By using Code, you accept all risk inherit with Code regardless if Code has known and yet to be discovered bugs.
    6. You are welcome to change and improve the Code to best meet your needs.
    7. I don't care if you use the Code in a commercial or open-source project.
    8. You are not required to contact me prior to using the Code.
    ================================================
    Simple. Enjoy.

  5. #5
    Sencha User
    Join Date
    Feb 2010
    Posts
    356
    Vote Rating
    4
    maneljn is on a distinguished road

      0  

    Default


    mandro, do you think that your good solution, would be possible to integrate with "ext.ux.desktop", using "desktop" like the main aplication ?¿

    Thanks

  6. #6
    Sencha User
    Join Date
    Feb 2010
    Posts
    356
    Vote Rating
    4
    maneljn is on a distinguished road

      0  

    Default


    this solution is under any license ? (sorry about my english)

    Manel

  7. #7
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    628
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    @mandro

    Thank you for your sample application. It is good inspiration for improving the framework.

    A couple observations/questions:
    * It does not appear that your app/module controllers support nested controllers, which means only 2 tiers are supported - the main & the module. For example, panelA is supervised by controllerA. PanelA contains a button to launch a different view (e.g. a config window). The sub-view should be supervised by a sub-controller. The pattern could continue to an Nth level. How would you refactor your example to support a nested design in order to avoid bloat in the main controller?

    * When your app loads, new globals get added that correspond with each bundle. Seems like that approach could lead to namespace bloat & potential conflicts. Would it be better to keep all bundles isolated to the product namespace? For example, AM.Reverse, AM.Dashboard, and AM.Viewshed would be used instead.

    Comments?

  8. #8
    Sencha User
    Join Date
    Jan 2009
    Posts
    10
    Vote Rating
    0
    mandro is on a distinguished road

      0  

    Default ExtJS4 HMVC

    ExtJS4 HMVC


    Previously I developed a sample application to use other pattern in my solutions.
    This solution only has 2 levels in depth, using MVC at level.
    Now, I recently work in new simplified and improved solution to use HMVC, using components with MVC pattern at any level.
    When I instanciate components, these create global namespaces, (I use the class Ext.ClassManager).But these meaning that you do not have 2 components with same name in a same level.

  9. #9
    Sencha User
    Join Date
    Jan 2009
    Posts
    10
    Vote Rating
    0
    mandro is on a distinguished road

      0  

    Default


    New version.
    Sorry I could'nt submit these files at the github.
    Attached Files