Author: vbaranov
Date: 2008-03-18 10:17:21 -0400 (Tue, 18 Mar 2008)
New Revision: 6907
Modified:
branches/3.1.x/ui/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java
branches/3.1.x/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
Log:
http://jira.jboss.com/jira/browse/RF-2548
Modified:
branches/3.1.x/ui/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java
===================================================================
---
branches/3.1.x/ui/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java 2008-03-18
14:17:15 UTC (rev 6906)
+++
branches/3.1.x/ui/dropdown-menu/src/main/java/org/richfaces/renderkit/html/DropDownMenuRendererBase.java 2008-03-18
14:17:21 UTC (rev 6907)
@@ -74,6 +74,7 @@
buffer.append(".");
function = new JSFunction("asDropDown");
function.addParameter(component.getClientId(context));
+ function.addParameter(component.getClientId(context) + "_span");
String evt = (String) component.getAttributes().get("event");
if(evt == null || evt.trim().length() == 0){
evt = "onmouseover";
Modified:
branches/3.1.x/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
===================================================================
---
branches/3.1.x/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2008-03-18
14:17:15 UTC (rev 6906)
+++
branches/3.1.x/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2008-03-18
14:17:21 UTC (rev 6907)
@@ -47,7 +47,7 @@
<jsp:scriptlet>
<![CDATA[} else {]]>
</jsp:scriptlet>
- <span class="dr-label-text-decor
rich-label-text-decor">#{component.attributes['value']}</span>
+ <span id="#{clientId}_span" class="dr-label-text-decor
rich-label-text-decor">#{component.attributes['value']}</span>
<jsp:scriptlet>
<![CDATA[}]]>
</jsp:scriptlet>