Author: nbelaevski
Date: 2008-12-06 00:21:31 -0500 (Sat, 06 Dec 2008)
New Revision: 11599
Modified:
trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
Log:
https://jira.jboss.org/jira/browse/RF-2073
Modified:
trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java
===================================================================
---
trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2008-12-06
05:07:58 UTC (rev 11598)
+++
trunk/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingListRendererBase.java 2008-12-06
05:21:31 UTC (rev 11599)
@@ -249,13 +249,14 @@
String clientId = orderingList.getBaseClientId(context);
ExternalContext externalContext = context.getExternalContext();
- Map requestParameterMap = externalContext
- .getRequestParameterMap();
+ Map<String, String[]> requestParameterValuesMap = externalContext
+ .getRequestParameterValuesMap();
- if (requestParameterMap.containsKey(clientId)) {
+ String[] strings = (String[]) requestParameterValuesMap.get(clientId);
+
+ if (strings != null && strings.length != 0) {
Set selection = new HashSet();
Object activeItem = null;
- String[] strings = (String[])
externalContext.getRequestParameterValuesMap().get(clientId);
Map map = new LinkedHashMap();
Converter converter = getConverter(context, orderingList, false);
for (int i = 0; i < strings.length; i++) {