Author: Alex.Kolonitsky
Date: 2009-07-22 05:59:28 -0400 (Wed, 22 Jul 2009)
New Revision: 14974
Modified:
branches/community/3.3.X/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
Log:
java.lang.UnsupportedOperationException in the PickList component.
https://jira.jboss.org/jira/browse/RF-7546
Modified:
branches/community/3.3.X/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
---
branches/community/3.3.X/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2009-07-22
08:53:31 UTC (rev 14973)
+++
branches/community/3.3.X/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2009-07-22
09:59:28 UTC (rev 14974)
@@ -23,7 +23,6 @@
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
@@ -426,7 +425,11 @@
attr);
if (value != null && (value.length() != 0)) {
- return Arrays.asList(value.split(","));
+ List<String> result = new ArrayList<String>();
+ for(String val : value.split(",")) {
+ result.add(val);
+ }
+ return result;
}
return null;