Author: nbelaevski
Date: 2008-03-19 09:43:36 -0400 (Wed, 19 Mar 2008)
New Revision: 6946
Modified:
trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
Log:
SuggestionBoxRenderer optimized
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-03-19
13:31:38 UTC (rev 6945)
+++
trunk/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2008-03-19
13:43:36 UTC (rev 6946)
@@ -23,7 +23,6 @@
import java.io.IOException;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -62,8 +61,7 @@
*/
public class SuggestionBoxRenderer extends AjaxComponentRendererBase {
- private static final Map<String, Pattern> tokensCache =
- Collections.synchronizedMap(new ReferenceMap<String, Pattern>());
+ private static final Map<String, Pattern> tokensCache = new
ReferenceMap<String, Pattern>();
/**
* Component options.
@@ -343,9 +341,8 @@
if (HtmlUtil.shouldWriteId(parent)) {
return parent;
} else {
- throw new FacesException("SuggestionBox cannot be attached to component
having id: " +
- parent.getId() + " because its client identifier is likely to not be
written into browser! " +
- "Please try to set id manually!");
+ throw new FacesException("SuggestonBox cannot be attached to the
component with id = " + parent.getId() +
+ ", because a client identifier of the component won�t be rendered onto
the page. Please, set the identifier.");
}
} else {
throw new FacesException("Parent component is null for SuggestionBox "
+