Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2.GA_P02, EE-2.0.0.Alpha1
-
Fix Version/s: EE-2.0.0.Beta1
-
Component/s: Facelet Components
-
Labels:None
-
Environment:All
-
ICEsoft Forum Reference:
-
Workaround Exists:Yes
-
Workaround Description:Use a String value for the items in the list
Description
When using a more complex object for the values in the list, the DualList component throws a NullPointerException when the add or remove buttons are clicked. This exception is not thrown then the add all or remove all button is clicked.
When using a String object it is working fine.
When using a String object it is working fine.
Issue Links
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
r26240 - Fixed the dualList so arbitrary objects can be used instead of just Strings. Previously the wrong key for our selected map was used, since we would put the SelectItem object value, but perform a get on a toString of the SelectItem, so it really only worked for basic Strings. Now a toString of the object is used as the key in all places, and therefore adding/removing non-String objects works.