Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Beta1
-
Component/s: Sample Apps
-
Labels:None
-
Environment:ICEfaces 2.0, Liferay 6.0.4
Description
menuPopup sample contains the following for inserting the image:
<ice:graphicImage value="./images/icefaces-menupop.png"
alt="ICEfaces" title="ICEfaces" width="352" height="122"/>
This is likely not the correct way to resolve an image resource in a JSF 2.0 Portlet.
It's fine to have a portlet request an image resource directly from the context, like "./images/icefaces-menupop.png"
But I think the reason why it's not rendering is because of the relative "." preceding the path. A long time ago, I think the behavior of ice:graphicImage was modified so that if a leading "/" is found in the attribute value, then the full context path will be rendered, which helps images render properly in Liferay at least. (not sure about other portals).