Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2-EE-GA_P01
-
Fix Version/s: 1.8.2-EE-GA_P02, 2.0.0
-
Component/s: ICE-Components, Sample Apps
-
Labels:None
-
Environment:ICEfaces portal portlet
Description
In the portlet version of component showase, the static panel tabset dumps the following to the server log:
19:07:32,883 WARN [PortalImpl:2948] Current URL /web/guest/images/menu/recent.gif generates exception: null
This is caused by the icon attribute of the panelTab component. The markup looks like this:
<ice:panelTab rendered="#{staticTabbedPaneExample.tabbedPane3Visible}"
label="#{msgs['page.panelTabSet.tab3']}"
icon="images/menu/recent.gif"
iconAlignRight="true"
title="#{msgs['page.panelTabSet.static.accessibility.tabThreeTitle']}'">
The resolution of the final URL for the recent.gif image is not valid in the portlet context.
19:07:32,883 WARN [PortalImpl:2948] Current URL /web/guest/images/menu/recent.gif generates exception: null
This is caused by the icon attribute of the panelTab component. The markup looks like this:
<ice:panelTab rendered="#{staticTabbedPaneExample.tabbedPane3Visible}"
label="#{msgs['page.panelTabSet.tab3']}"
icon="images/menu/recent.gif"
iconAlignRight="true"
title="#{msgs['page.panelTabSet.static.accessibility.tabThreeTitle']}'">
The resolution of the final URL for the recent.gif image is not valid in the portlet context.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Checked in changes to both the ICEfaces 1.8 trunk and the ICEfaces 2 compat section.
For the panetTabSet-static.jspx, panetTabSet-static.xhtml file, I set the path of the icon to absolute. This allows the path to be resolved to include the web-app context.
For the PanelTab, I changed the the getIcon() call so that it runs through the CoreUtils.resolveResourceURL to ensure the resource is properly encoded for the environment that it's running in.