Tapestry 5
  1. Tapestry 5
  2. TAP5-1364

Documentation about ExtJS integration

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: documentation
    • Labels:
      None

      Description

      Maybe there should be some docs about integrating with other JS libraries at the http://tapestry.apache.org/user-guide.html. Maybe the chapter "Ajax & JavaScript" should be separated. Some clear examples of how to include other js libs would be very helpful.

      I saw a very short email on the user list about extjs integration issue (http://tapestry.markmail.org/thread/6zz7zz7ewuzkengv), but I doubt this "hidden" info will be found early enough for someone trying to start with T5 and extjs, before he/she gets in the bad mood.

      I am writing this beforehand - I haven't even tried T5 & ExtJS web app yet, but I am doing a field research as what troubles I might have. I just bought a book "ExtJS in action" so there will be plenty of info from the Extjs side, now I wish there would be some from the T5 side also.

      Thanks!

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        This has all changed in 5.4; perhaps an issue to allow ExtJS as the foundation framework would be appropriate ... though it would likely require some patch to let RequireJS be used as the module loader.

        Show
        Howard M. Lewis Ship added a comment - This has all changed in 5.4; perhaps an issue to allow ExtJS as the foundation framework would be appropriate ... though it would likely require some patch to let RequireJS be used as the module loader.
        Hide
        Borut Bolcina added a comment -

        In Chapter 1.5.1 of the ExtJS book the author explains the content of the distribution. There is a folder "adapter" and what it does is:

        "Contains the ext-base.js, which is the base Ext JS library, which is used for an all-Ext JS
        setup. It also contains necessary adapters and supported versions of Prototype, jQuery,
        or YUI libraries if you want to use any of those as a base."

        And chapter 1.5.3 talks about configuring ExtJS with other libraries:

        <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
        <script type="text/javascript" src="extjs/adapter/prototype/prototype.js"></script>
        <script type="text/javascript" src="extjs/adapter/prototype/scriptaculous.js?load=effects.js"></script>
        <script type="text/javascript" src="extjs/adapter/prototype/ext-prototype-adapter-debug.js"></script>
        <script type="text/javascript" src="extjs/ext-all-debug.js"></script>

        and follows with:

        "As you can see, this is like the generic Ext JS setup with two additional JS files. The Prototype
        and Scriptaculous libraries take the place of ext-base, and ext-prototypeadapter.
        js maps the external library methods to Ext."

        How can this help with T5 integration?

        Show
        Borut Bolcina added a comment - In Chapter 1.5.1 of the ExtJS book the author explains the content of the distribution. There is a folder "adapter" and what it does is: "Contains the ext-base.js, which is the base Ext JS library, which is used for an all-Ext JS setup. It also contains necessary adapters and supported versions of Prototype, jQuery, or YUI libraries if you want to use any of those as a base." And chapter 1.5.3 talks about configuring ExtJS with other libraries: <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" /> <script type="text/javascript" src="extjs/adapter/prototype/prototype.js"></script> <script type="text/javascript" src="extjs/adapter/prototype/scriptaculous.js?load=effects.js"></script> <script type="text/javascript" src="extjs/adapter/prototype/ext-prototype-adapter-debug.js"></script> <script type="text/javascript" src="extjs/ext-all-debug.js"></script> and follows with: "As you can see, this is like the generic Ext JS setup with two additional JS files. The Prototype and Scriptaculous libraries take the place of ext-base, and ext-prototypeadapter. js maps the external library methods to Ext." How can this help with T5 integration?
        Hide
        Howard M. Lewis Ship added a comment -

        The main problem I've seen is the conflict between Prototype's addition of Function.defer() and ExtJS's addition of an incompatible Function.defer(). I go through a tedious and error-prone process of renaming ExtJS's addition to "xdefer".

        It underscores that you can layer JavaScript, but not always JavaScript Libraries.

        Show
        Howard M. Lewis Ship added a comment - The main problem I've seen is the conflict between Prototype's addition of Function.defer() and ExtJS's addition of an incompatible Function.defer(). I go through a tedious and error-prone process of renaming ExtJS's addition to "xdefer". It underscores that you can layer JavaScript, but not always JavaScript Libraries.

          People

          • Assignee:
            Unassigned
            Reporter:
            Borut Bolcina
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development