Author: dmaliarevich
Date: 2008-05-28 04:38:35 -0400 (Wed, 28 May 2008)
New Revision: 8391
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuItemTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2043,
Template was added for <img> tag, if there is an alt attribute it is displayed,
otherwise unknown images is displayed.
Method in VpeStyleUtil was corrected, references to this method in Panel Menu Group and
Item were corrected.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java 2008-05-28
08:38:30 UTC (rev 8390)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java 2008-05-28
08:38:35 UTC (rev 8391)
@@ -527,7 +527,7 @@
ComponentUtil.setImg(imgIcon, pathIconDisabled);
} else {
String imgFullPath = VpeStyleUtil.addFullPathToImgSrc(
- pathIconDisabled, pageContext);
+ pathIconDisabled, pageContext, true);
imgIcon.setAttribute(HtmlComponentUtil.HTML_ATR_SRC,
imgFullPath);
}
@@ -543,7 +543,7 @@
ComponentUtil.setImg(imgIcon, pathIconExpanded);
} else {
String imgFullPath = VpeStyleUtil.addFullPathToImgSrc(
- pathIconExpanded, pageContext);
+ pathIconExpanded, pageContext, true);
imgIcon.setAttribute(HtmlComponentUtil.HTML_ATR_SRC,
imgFullPath);
}
@@ -558,7 +558,7 @@
ComponentUtil.setImg(imgIcon, pathIconCollapsed);
} else {
String imgFullPath = VpeStyleUtil.addFullPathToImgSrc(
- pathIconCollapsed, pageContext);
+ pathIconCollapsed, pageContext, true);
imgIcon.setAttribute(HtmlComponentUtil.HTML_ATR_SRC,
imgFullPath);
}
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuItemTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuItemTemplate.java 2008-05-28
08:38:30 UTC (rev 8390)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuItemTemplate.java 2008-05-28
08:38:35 UTC (rev 8391)
@@ -397,7 +397,7 @@
if (RichFacesPanelMenuGroupTemplate.DEFAULT_ICON_MAP.containsKey(imgPath[0])) {
ComponentUtil.setImg(img, imgPath[1]);
} else {
- String imgFullPath = VpeStyleUtil.addFullPathToImgSrc(imgPath[0], pageContext);
+ String imgFullPath = VpeStyleUtil.addFullPathToImgSrc(imgPath[0], pageContext,
true);
img.setAttribute(HtmlComponentUtil.HTML_ATR_SRC, imgFullPath);
}
}