Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.1
-
Fix Version/s: 1.5.2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Operating System: Mac OS X 10.0
Platform: Macintosh
Description
getApplicationBase() in
com/icesoft/faces/component/ext/taglib/Util.java
assumes an HttpServletRequest for deriving the path to load component resources, such as images. For
instance, when running in a portlet context, request.getURI() returns null, even if the request is an
instance of HttpServletRequest (PortletRequest instances are frequently subclasses of ServletRequest
instances)
com/icesoft/faces/component/ext/taglib/Util.java
assumes an HttpServletRequest for deriving the path to load component resources, such as images. For
instance, when running in a portlet context, request.getURI() returns null, even if the request is an
instance of HttpServletRequest (PortletRequest instances are frequently subclasses of ServletRequest
instances)
The following change has been committed to the 1.5 branch and the head:
svn commit src/com/icesoft/faces/component/ext/taglib/Util.java -m "initial support for ice:
components in portlets (
ICE-1153)"Sending src/com/icesoft/faces/component/ext/taglib/Util.java
Transmitting file data .
Committed revision 12786.
Two things are missing: support for pages in subfolders and URL structuring for IE caching ("./"). We
may want to find a more JSF-friendly way to use relative URLs (such as a different implementation of
ViewHandler.getResourceURL()).