Author: sergeyhalipov
Date: 2007-07-12 12:22:27 -0400 (Thu, 12 Jul 2007)
New Revision: 1610
Modified:
branches/3.0.2/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
branches/3.0.2/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
branches/3.0.2/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/templates/popup.jspx
Log:
http://jira.jboss.com/jira/browse/RF-441
Modified:
branches/3.0.2/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
---
branches/3.0.2/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-07-12
15:42:50 UTC (rev 1609)
+++
branches/3.0.2/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-07-12
16:22:27 UTC (rev 1610)
@@ -185,10 +185,6 @@
StringBuffer clazz = new StringBuffer(
"dr-sb-common-container rich-sb-common-container");
- Object popupClass = attributes.get("popupClass");
- if (null != popupClass) {
- clazz.append(" ").append(popupClass);
- }
writer.writeAttribute("class", clazz, "popupClass");
int zIndex = suggestionBox.getZindex();
Modified:
branches/3.0.2/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
---
branches/3.0.2/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-07-12
15:42:50 UTC (rev 1609)
+++
branches/3.0.2/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-07-12
16:22:27 UTC (rev 1610)
@@ -91,6 +91,10 @@
}
this.onScrollListener = this.onScroll.bindAsEventListener(this);
+
+ if (options.popupClass)
+ Element.addClassName(document.getElementsByClassName("dr-sb-ext-decor-3",
+ this.update)[0], options.popupClass);
},
onBoxKeyPress: function(event) {
Modified:
branches/3.0.2/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/templates/popup.jspx
===================================================================
---
branches/3.0.2/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/templates/popup.jspx 2007-07-12
15:42:50 UTC (rev 1609)
+++
branches/3.0.2/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/templates/popup.jspx 2007-07-12
16:22:27 UTC (rev 1610)
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<f:template
xmlns:f='http:/jsf.exadel.com/template'
xmlns:u='http:/jsf.exadel.com/template/util'
-
xmlns="http://www.w3.org/1999/xhtml">
+
xmlns="http://www.w3.org/1999/xhtml"
+ component="org.richfaces.component.UISuggestionBox">
<div class="dr-sb-ext-decor-1 rich-sb-ext-decor-1">
<div class="dr-sb-ext-decor-2 rich-sb-ext-decor-2">