Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2.GA
-
Fix Version/s: 1.8.2.GA_P01
-
Component/s: Facelet Components
-
Labels:None
-
Environment:Portlet
-
Affects:Compatibility/Configuration
Description
Some of the composite components (treeTable, editableDataTable) use image path references that are not working in a portlet environment. This issue was fixed in the regular components by the use of the imageDir attribute and by changing the ICEfaces default CSS files. With most composite components there is no way to control these images paths.
Issue Links
- blocks
-
IPCK-58 <ice-cc:dragAndDropTreeTable> tag incorrectly references xmlhttp images using a relative path
-
- Closed
-
-
IPCK-71 Editable data table paginator images don't show up when page is in a sub-context
-
- Closed
-
-
IPCK-76 TreeTable error at Portlet enviroment
-
- Closed
-
- duplicates
-
IPCK-71 Editable data table paginator images don't show up when page is in a sub-context
-
- Closed
-
As Brad already discovered, we need to replace all the 'img' tags with graphicImage components. The components calculate the path to resources by using framework's ViewHandler.getResourceURL method. Additionally the path passed to the component should start with '/' thus the calculated URL will be an absolute path that contains the web-application context path.
Here's the ViewHandler.getResourceURL javadoc:
"Return a URL suitable for rendering (after optional encoding perfomed by the encodeResourceURL() method of ExternalContext that selects the specifed web application resource. If the specified path starts with a slash, it must be treated as context relative; otherwise, it must be treated as relative to the action URL of the current view."