Community
Participate
Working Groups
Create a ComboBoxCellEditor with an editable combo box. Associate a validator with the cell editor. Enter text into the combo box which is not (yet) part of the items of the combo box. Within the validator's isValid-method, return an error message for that input. An ArrayIndexOutOfBoundsException is thrown. Reason: In the method applyEditorValueAndDeactivate() a ComboBoxCellEditor retrieves the selection index of the combo box, with is -1 when the entered text is not found in the items list of the combo box. When a validator determines that the input is not valid, an error message is constructed within that method via setErrorMessage(MessageFormat.format(getErrorMessage(), new Object[] {items[selection]})); which fails for selection = -1.
Nick, this looks to be a duplicate of 60462.
Indeed it does. Closing as a dup of the (later) bug 60462 since that report has more details. *** This bug has been marked as a duplicate of 60462 ***