Author: maksimkaszynski
Date: 2008-03-25 12:17:22 -0400 (Tue, 25 Mar 2008)
New Revision: 7182
Modified:
trunk/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java
Log:
http://jira.jboss.com/jira/browse/RF-2726
Modified: trunk/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java
===================================================================
---
trunk/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java 2008-03-25
16:17:17 UTC (rev 7181)
+++
trunk/ui/orderingList/src/main/java/org/richfaces/component/UIOrderingList.java 2008-03-25
16:17:22 UTC (rev 7182)
@@ -80,7 +80,7 @@
private static final long serialVersionUID = 5860506816451180551L;
private Map dataMap;
- private Collection selection;
+ private Set selection;
private Object activeItem;
private boolean _null = false;
@@ -153,7 +153,7 @@
private Object value;
- private Collection selection;
+ private Set selection;
private boolean selectionSet;
private Object activeItem;
@@ -170,7 +170,7 @@
value = restoreAttachedState(context, state[0]);
- selection = (Collection) restoreAttachedState(context, state[1]);
+ selection = (Set) restoreAttachedState(context, state[1]);
selectionSet = Boolean.TRUE.equals(state[2]);
activeItem = restoreAttachedState(context, state[3]);
@@ -608,22 +608,22 @@
public abstract String getControlsType();
public abstract void setControlsType(String type);
- public Collection getSelection() {
+ public Set getSelection() {
if (valueHolder != null && valueHolder.selection != null) {
return valueHolder.selection;
} else {
ValueBinding vb = getValueBinding("selection");
if (vb != null) {
- return (Collection) vb.getValue(FacesContext.getCurrentInstance());
+ return (Set) vb.getValue(FacesContext.getCurrentInstance());
}
}
return null;
}
- public void setSelection(Collection collection) {
+ public void setSelection(Set selection) {
createValueHolder();
- valueHolder.selection = collection;
+ valueHolder.selection = selection;
valueHolder.selectionSet = true;
}