Author: d.bulahov
Date: 2007-03-28 03:51:46 -0400 (Wed, 28 Mar 2007)
New Revision: 182
Modified:
trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
Log:
add "label" facet
Modified:
trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
===================================================================
---
trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2007-03-28
07:51:42 UTC (rev 181)
+++
trunk/richfaces/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2007-03-28
07:51:46 UTC (rev 182)
@@ -26,7 +26,20 @@
style="#{component.attributes['style']};"
onmouseover="this.className='dr-menu-label dr-menu-label-select
rich-menu-label rich-menu-label-select'"
onmouseout="this.className='dr-menu-label dr-menu-label-unselect
rich-menu-label rich-menu-label-unselect'">
- <span class="dr-label-text-decor
rich-label-text-decor">#{component.attributes['value']}</span>
+ <jsp:scriptlet>
+ <![CDATA[if(component.getFacet("label")!=null &&
component.getFacet("label").isRendered()) {]]>
+ </jsp:scriptlet>
+ <span class="dr-label-text-decor rich-label-text-decor">
+ <u:insertFacet name="label" />
+ </span>
+ <jsp:scriptlet>
+ <![CDATA[} else {]]>
+ </jsp:scriptlet>
+ <span class="dr-label-text-decor
rich-label-text-decor">#{component.attributes['value']}</span>
+ <jsp:scriptlet>
+ <![CDATA[}]]>
+ </jsp:scriptlet>
+
<div id="#{clientId}_menu"
style="width: #{component.attributes['popupWidth']};
visibility: hidden; z-index:100;"
class="dr-menu-list-border dr-menu-list-position
rich-menu-list-border rich-menu-list-position">
Show replies by date