Author: F.antonov
Date: 2007-03-27 10:07:08 -0400 (Tue, 27 Mar 2007)
New Revision: 172
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-27
14:06:33 UTC (rev 171)
+++
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx 2007-03-27
14:07:08 UTC (rev 172)
@@ -29,9 +29,13 @@
<!-- f:call name="encodeAttributeParameters" / -->
<jsp:scriptlet><![CDATA[
- if (null != variables.getVariable("icon")) {
+ UIComponent iconFacet = getIconFacet((org.richfaces.component.UIMenuItem)
component);
+ if (null != iconFacet) {
+ renderChild(context, iconFacet);
+ } else {
]]></jsp:scriptlet>
- <img class="dr-menu-icon rich-menu-item-icon
#{component.attributes['iconClass']}"
+ <img id="#{clientId}:icon"
+ class="#{iconClass}"
width="16"
height="16"
style="#{component.attributes['iconStyle']}"
@@ -40,9 +44,11 @@
}
]]></jsp:scriptlet>
- <f:verbatim>
+ <a id="#{clientId}:anchor"
+ href="#"
+ class="#{labelClass}">
#{component.attributes['value']}
- </f:verbatim>
- <vcp:body />
+ <f:call name="renderChildren" />
+ </a>
</div>
</f:root>
\ No newline at end of file
Show replies by date