ICEfaces
  1. ICEfaces
  2. ICE-1558

Use relative URLs for ICEfaces' resources

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6DR#5
    • Fix Version/s: 1.6DR#6, 1.6
    • Component/s: Bridge, Framework
    • Labels:
      None
    • Environment:
      Any Servlet environment (thus not Portlet environment)

      Description

      When writing the script elements and such for icefaces-d2d.js and other resources, the src attribute should contain a relative URL in case of a Servlet environment. (For the Portlet environment it is important that the context path is added to the URL.)

      In case the "outside" URL to the ICEfaces application needs to be something like http://www.host.com/context/icefaces-application and the local URL is http://local/icefaces-application, it should be possible to put a web server into the front of the application server that proxies all requests. Currently ICEfaces puts "absolute" URLs in the src attribute of script elements like "/icefaces-application/xmlhttp/<server-startup-timestamp>/icefaces-d2d.js". In this case the client will resolve this to http://www.host.com/icefaces-application/xmlhttp/&lt;server-startup-timestamp&gt;/icefaces-d2d.js instead of http://www.host.com/context/icefaces-application/xmlhttp/&lt;server-startup-timestamp&gt;/icefaces-d2d.js. When ICEfaces writes something like "./xmlhttp/<server-startup-timestamp>/icefaces-d2d.js" to the src attribute, the client will resolve correctly to http://www.host.com/context/icefaces-application/xmlhttp/&lt;server-startup-timestamp&gt;/icefaces-d2d.js, giving the web server the ability to correctly proxy this request to the application server.

      There also seems to be URL like this in our JavaScript bridge. We should let the client take care of correctly resolving these URLs, as the client knows in which context it resides. The application server doesn't know that the web server "changes" the outside context to be accessed.

        Activity

        Jack Van Ooststroom created issue -
        Mircea Toma made changes -
        Field Original Value New Value
        Assignee Mircea Toma [ mircea.toma ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #13896 Thu May 17 14:59:58 MDT 2007 mircea.toma Use relative paths to the context's path. Embed bridge configuration in the generated page -- ICE-1558.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/application/ProductInfo.java
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/connection.async.js
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/renderkit/LocationUtil.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.java
        Commit graph DEL /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/ServeBridgeJSCode.java
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/connection.js
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/ServletView.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/ResourceServer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/BridgeFacesContext.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DOMContext.java
        Commit graph ADD /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/ServeJSCode.java
        Commit graph DEL /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/ServeExtraJSCode.java
        Hide
        Mircea Toma added a comment -

        Use relative paths to the context's path.
        Embed bridge configuration in the generated page.

        Show
        Mircea Toma added a comment - Use relative paths to the context's path. Embed bridge configuration in the generated page.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mircea Toma made changes -
        Affects Version/s 1.6DR#5 [ 10071 ]
        Affects Version/s 1.6DR#4 [ 10060 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #13909 Fri May 18 11:55:10 MDT 2007 mircea.toma Use standard JSF API for resource resolution -- ICE-1558.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/taglib/Util.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/renderkit/dom_html_basic/DomBasicRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #13919 Fri May 18 16:14:24 MDT 2007 mircea.toma Use abolute paths for resources that have to be resolved to the application context path -- ICE-1558.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/taglib/Util.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/paneltabset/PanelTabSetRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/tree/Tree.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/effects/JavascriptContext.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDate.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputchart/OutputChartRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/menubar/MenuItemCheckbox.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/menubar/MenuItemRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/menubar/MenuItem.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/application/D2DViewHandler.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelpopup/PanelPopupRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/tree/TreeRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/menubar/MenuItemRadio.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/menubar/MenuBar.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/renderkit/dom_html_basic/DomBasicRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/renderkit/dom_html_basic/TableRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #13921 Fri May 18 16:16:08 MDT 2007 mircea.toma Use abolute paths for resources that have to be resolved to the application context path -- ICE-1558.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-menu-props.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDateRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #13924 Fri May 18 16:45:36 MDT 2007 mircea.toma Use abolute paths for resources that have to be resolved to the application context path -- ICE-1558.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDate.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #13925 Fri May 18 16:47:12 MDT 2007 mircea.toma Use abolute paths for resources that have to be resolved to the application context path -- ICE-1558.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #13926 Fri May 18 17:22:29 MDT 2007 mircea.toma Use abolute paths for resources that have to be resolved to the application context path -- ICE-1558.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/util/StyleBean.java
        Ken Fyten made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Fix Version/s 1.6 [ 10031 ]
        Fix Version/s 1.6DR#6 [ 10090 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Mircea Toma [ mircea.toma ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jack Van Ooststroom
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: