I am using richlist and when in the bean I try to call the following following
Object[] values = ((UIPickList) source).getSelectedValues();
It throws the following exception
Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to [Ljava.lang.Object; at javax.faces.component.UISelectMany.getSelectedValues(UISelectMany.java:80)
It says in the api docs that getSelectedValues must return the Object[] but it does not. Is this a bug or what.