Details
-
Type: Improvement
-
Status: Closed
-
Priority: 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.
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.
Modified D2DViewHandler.getResourceURL and D2DViewHandler.getActionURL methods 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.