ICEfaces
  1. ICEfaces
  2. ICE-7941

Add parameter for configuring the base path of an application

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2, EE-1.8.2.GA_P03
    • Fix Version/s: EE-1.8.2.GA_P06
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 1.8.x
    • Assignee Priority:
      P1
    • Salesforce Case Reference:
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      Feature Request: Add ability for an application to use a relative path to the xmlhttp servlet.

      Scenario:

      Instead of rendering the page as follows:

      <script src="/app-context/xmlhttp/1332234398300/icefaces-d2d.js" type="text/javascript"></script>

      It renders the page as so:
      <script src="./app-context/xmlhttp/1332234398300/icefaces-d2d.js" type="text/javascript"></script>

      The reason being, we have two sites hosted and redirected by the front end apache servers:

      https://www.web.com/app1/app-context/MainPage.iface
      and
      https://www.web.com/app-context/MainPage.iface

      What is happening is that when the absolute path being put in the render response, we get redirected to the second instance of the app-context. When in fact I want to go to the first instance.
      1. data.xml
        0.5 kB
        Mircea Toma

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #33065 Tue Jan 15 15:38:19 MST 2013 mircea.toma ICE-7941 Modified getResourceURL and getActionURL methds to use a different context path when calculating the absolute URLs. The different context path can be defined using the "com.icesoft.faces.publicContextPath" context parameter.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/application/D2DViewHandler.java

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: