Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4925

zEmbedded support for zul-declared stylesheet and script components

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Done
    • Normal
    • 9.6.0
    • 9.6.0
    • ZK Client Engine
    • Security Level: Jimmy

    Description

      User Story

      As an developer, I want to use in-zul <script src="/.../.../myscript.js/>" and <style="/.../.../mysheet.css"/>

      using path such as
      absolute path "http://server/context/myfile.js" (already supported)

      context-relative path "/webapproot/resources/js/myfile.js" (not supported)

      relative path "../myfolder/myfile.js"

      or crw path "~./resource/js/myfile.js"

      every path that are not absolute are sent to the client as relative to the website context

      ex.  /zkau/.../.../js/myfolder/myfile.js

       

      Assuming that my ZK application is located at "https://myzkapp/" and my outer (embedding) application is located at "https://myouterapp", these URLs will be resolved relative to the outer app such as:

      https://myouterapp/zkau/.../.../js/myfolder/myfile.js

      which will result in http 404 error since the files are located on the ZK server.

      Acceptance Criteria

      <script> and <style> components can resolve their content regardless of direct access or embedded access

      Details

       

      Attachments

        Issue Links

          Activity

            People

              DevChu DevChu
              MDuchemin MDuchemin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: