Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6DR#5
-
Labels:None
-
Environment:Any Servlet environment (thus not Portlet environment)
-
ICEsoft Forum Reference:
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/<server-startup-timestamp>/icefaces-d2d.js instead of http://www.host.com/context/icefaces-application/xmlhttp/<server-startup-timestamp>/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/<server-startup-timestamp>/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.
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/<server-startup-timestamp>/icefaces-d2d.js instead of http://www.host.com/context/icefaces-application/xmlhttp/<server-startup-timestamp>/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/<server-startup-timestamp>/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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
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 -- |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/util/StyleBean.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 -- |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.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 -- |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDate.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 -- |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-menu-props.xml
MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDateRenderer.java |
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 -- |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/taglib/Util.java
MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.java MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/renderkit/dom_html_basic/DomBasicRenderer.java |