Author: nbelaevski
Date: 2008-09-16 17:38:46 -0400 (Tue, 16 Sep 2008)
New Revision: 10457
Modified:
trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
Log:
https://jira.jboss.org/jira/browse/RF-4316
Modified:
trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
---
trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2008-09-16
19:37:07 UTC (rev 10456)
+++
trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2008-09-16
21:38:46 UTC (rev 10457)
@@ -395,8 +395,11 @@
for (int i = 0; i < OPTIONS.length; i++) {
String option = OPTIONS[i];
Object value = attributes.get(option);
+
if (null != value) {
- options.put(option, value);
+ if (!"frequency".equals(option) || ((Double)
value).doubleValue() > 1E-9) {
+ options.put(option, value);
+ }
}
}
// If ajax queue name not set, put clientId