Author: F.antonov
Date: 2007-03-26 07:53:15 -0400 (Mon, 26 Mar 2007)
New Revision: 145
Modified:
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx
Log:
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-26
11:52:53 UTC (rev 144)
+++
trunk/richfaces/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx 2007-03-26
11:53:15 UTC (rev 145)
@@ -16,7 +16,38 @@
new org.ajax4jsf.framework.ajax.AjaxScript(),
</h:scripts>
+ <f:call name="initializeResources" />
+
<f:clientid var="clientId"/>
- <div id="#{clientId}" name="#{clientId}">
+ <div id="#{clientId}"
+ class="menu_item menu_item_unselect
#{component.attributes['styleClass']}"
+ onmouseout="this.className='menu_item menu_item_unselect';
component.attributes['onmouseout']}"
+ onmouseover="this.className='menu_item menu_item_select';
component.attributes['onmouseover']}"
+ style="cursor: pointer; #{component.attributes['style']}"
+ >
+
+ <!-- f:call name="encodeAttributeParameters" / -->
+ <jsp:scriptlet>
+ <![CDATA[
+ if (null != variables.getVariable("icon")) {
+ ]]>
+ </jsp:scriptlet>
+ <img class="menu_ico #{component.attributes['iconClass']}"
+ width="16"
+ height="16"
+ style="#{component.attributes['iconStyle']}"
+ src="#{icon}"/>
+ <jsp:scriptlet>
+ <![CDATA[
+ }
+ ]]>
+ </jsp:scriptlet>
+
+ <a href="">
+ <f:verbatim>
+ #{component.attributes['value']}
+ </f:verbatim>
+ <vcp:body />
+ </a>
</div>
</f:root>
\ No newline at end of file
Show replies by date