Author: F.antonov
Date: 2007-03-28 03:56:33 -0400 (Wed, 28 Mar 2007)
New Revision: 184
Modified:
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx
Log:
MenuItem component development.
Modified:
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx
===================================================================
---
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx 2007-03-28
07:56:01 UTC (rev 183)
+++
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx 2007-03-28
07:56:33 UTC (rev 184)
@@ -28,21 +28,22 @@
<!-- f:call name="encodeAttributeParameters" / -->
- <jsp:scriptlet><![CDATA[
- UIComponent iconFacet = getIconFacet((org.richfaces.component.UIMenuItem)
component);
- if (null != iconFacet) {
- renderChild(context, iconFacet);
- } else {
- ]]></jsp:scriptlet>
- <img id="#{clientId}:icon"
- class="#{iconClass}"
- width="16"
+ <span id="#{clientId}:icon"
+ class="#{iconClass}">
+ <jsp:scriptlet><![CDATA[
+ UIComponent iconFacet = getIconFacet((org.richfaces.component.UIMenuItem)
component);
+ if (null != iconFacet) {
+ renderChild(context, iconFacet);
+ } else {
+ ]]></jsp:scriptlet>
+ <img width="16"
height="16"
style="#{component.attributes['iconStyle']}"
src="#{icon}" />
- <jsp:scriptlet><![CDATA[
+ <jsp:scriptlet><![CDATA[
}
- ]]></jsp:scriptlet>
+ ]]></jsp:scriptlet>
+ </span>
<a id="#{clientId}:anchor"
href="#"