Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14147

Resource-Optimizer skips ckeditor.js

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Optional
    • Resolution: Partially Completed
    • Affects Version/s: 4.5.8
    • Fix Version/s: 4.5.10
    • Component/s: None
    • Labels:
    • Steps to Reproduce:
      Hide
      1. Run resource-optimizer plugin in packed-compressed mode
      2. Copy the generated files to your application
      3. Load an xhtml page in the browser containing a rich:calendar and rich:autocomplete component

      The JS error will be seen in the browser's dev tools

      Show
      Run resource-optimizer plugin in packed-compressed mode Copy the generated files to your application Load an xhtml page in the browser containing a rich:calendar and rich:autocomplete component The JS error will be seen in the browser's dev tools

      Description

      I'm using "richfaces-resource-optimizer-maven-plugin" to generate packed-compressed resources for a custom skin of mine. I'm excuting this via Maven as per its documentation.

      In RF 4.5.8 this leads to an incomplete packed.js file where ckeditor.js is missing. The effect shows in the Browser where packed.js is not loading properly because of an error:

      ReferenceError: CKEDITOR is not defined
      

      This also causes follow-up errors, in my case for Calendars and Autocompletes.

      The resource-optimizer plugin complains about ckeditor.js during the build:

      [INFO] Skipping org.richfaces.ckeditor:ckeditor.js because it contains EL-expressions
      

        Gliffy Diagrams

          Attachments

          1. foo.skin.properties
            2 kB
          2. pom.xml
            7 kB
          3. rf-packed-js-error.png
            rf-packed-js-error.png
            24 kB

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                mister_s Mister S
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: