MyFaces Core
  1. MyFaces Core
  2. MYFACES-3361

jsf.js: code restructuration for size and speed improvlements

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.10-SNAPSHOT, 2.1.4-SNAPSHOT
    • Fix Version/s: 2.0.10, 2.1.4
    • Component/s: None
    • Labels:
      None

      Description

      Currently we have one big jsf.js file with all code in

      • core which implements all of the spec
      • i18n which implements the language messages for currently 7 languages
      • experimental which implements features targetted for jsf 2.2 onwards
      • quirksmode code which supports non standard compliant browsers

      The idea is to still keep one big file, but also provide several files which partially can be mixed to achieve the functionality needed

      We are going to allow

      • one big file which resembles our current jsf.js
      • a base file which resembles the core + quirksmode
      • a modern browser file which resembles the core only without quirksmode code
      • a separate i18n file for the i18n messages
      • a legacy file for quirksmode browsers
      • an experimental file with all non standard features combined
        In the end the plan is to allow the users to mix those feature sets to reduce the import size while still retaining all the existing
        functionality.

        Activity

        Hide
        Werner Punz added a comment -
        Show
        Werner Punz added a comment - I added a blog for the new functionality: http://www.irian.at/de/blog/-/blogs/introducing-apache-myfaces-modular-includes
        Hide
        Werner Punz added a comment -

        we are done with it for this release

        Show
        Werner Punz added a comment - we are done with it for this release
        Hide
        Werner Punz added a comment -

        reopening issue because the honkong chinese messages are missing in the final build

        Show
        Werner Punz added a comment - reopening issue because the honkong chinese messages are missing in the final build
        Hide
        Werner Punz added a comment -

        Hi Keith, thanks for reporting it, I will fix that tomorrow.

        Show
        Werner Punz added a comment - Hi Keith, thanks for reporting it, I will fix that tomorrow.
        Hide
        Keith Wong added a comment -

        It seems Messages_zh_HK.js is missing in the change set #1190363 and #1190364.

        Show
        Keith Wong added a comment - It seems Messages_zh_HK.js is missing in the change set #1190363 and #1190364.
        Hide
        Werner Punz added a comment -

        resolved for now, I will give the entire new structure a proper testing next week, and then off to the documentation.

        Show
        Werner Punz added a comment - resolved for now, I will give the entire new structure a proper testing next week, and then off to the documentation.
        Hide
        Werner Punz added a comment -

        Reopening for another bunch of refactorings which reduces the code size for the core again another kbytes.

        Show
        Werner Punz added a comment - Reopening for another bunch of refactorings which reduces the code size for the core again another kbytes.
        Hide
        Werner Punz added a comment -

        I also want to split the RT into a Core RT and a quirks RT so that we can isolate legacy browser specific code from the RT and remove it for our minimal-modern build.

        Show
        Werner Punz added a comment - I also want to split the RT into a Core RT and a quirks RT so that we can isolate legacy browser specific code from the RT and remove it for our minimal-modern build.
        Hide
        Leonardo Uribe added a comment -

        I checked the patch and fixed some parts, because InternalClassLoaderResourceLoader was thought jus as a workaround. Thanks Werner for the patch.

        Show
        Leonardo Uribe added a comment - I checked the patch and fixed some parts, because InternalClassLoaderResourceLoader was thought jus as a workaround. Thanks Werner for the patch.
        Hide
        Werner Punz added a comment -

        Patches to the core to enable the web.xml config params

        Show
        Werner Punz added a comment - Patches to the core to enable the web.xml config params

          People

          • Assignee:
            Werner Punz
            Reporter:
            Werner Punz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development