Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.1.6
-
None
-
All
Description
When we use a
String[] selectedValues in the Action and the beans keys are for example Long this is not working
<@s.checkboxlist name="selectedValues" list=q.choices listKey="id" listValue="label" />
(id is a Long)
It's working if we use a java.util.List selectedValues
The issue comes from ContainUtil class
In arrays we don't check the String value
if (obj1 instanceof Iterable) {
...
if (obj2.equals(value) || obj2.toString().equals(value))
else if (obj1.getClass().isArray()) {
...
if (value.equals(obj2)) { //(it's not working)
Thanks
Luis