-
Bug
-
Resolution: Incomplete
-
P3
-
8u66
-
x86_64
-
windows_7
FULL PRODUCT VERSION :
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Windows 7 64-bit Home edition
A DESCRIPTION OF THE PROBLEM :
With JavaFx, I can place a choicebox or a combobox within a cell of a tableview. But the behaviour of a choicebox within a tablecell differs from a regular one:
1/ select an item of the choicebox, it becomes the selected item,
2/ select again the same item
- in the case of a choicebox within a tablecell, it gets deselected but no choicebox event is raised while expecting at least selectedItemProperty, selectedIndexProperty and valueProperty.
- in the case of a regular choicebox, nothing gets changed (the current item remains selected).
I expect to have the behaviour of a choicebox within a tablecell to be the same as a regular choicebox.
This bug is triggered the startEdit() method of TableCell, which unexpectedly always resets the current selected item to none with the below code:
if (! lockItemOnEdit) {
updateItem(-1);
}
REGRESSION. Last worked in version 8u66
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Windows 7 64-bit Home edition
A DESCRIPTION OF THE PROBLEM :
With JavaFx, I can place a choicebox or a combobox within a cell of a tableview. But the behaviour of a choicebox within a tablecell differs from a regular one:
1/ select an item of the choicebox, it becomes the selected item,
2/ select again the same item
- in the case of a choicebox within a tablecell, it gets deselected but no choicebox event is raised while expecting at least selectedItemProperty, selectedIndexProperty and valueProperty.
- in the case of a regular choicebox, nothing gets changed (the current item remains selected).
I expect to have the behaviour of a choicebox within a tablecell to be the same as a regular choicebox.
This bug is triggered the startEdit() method of TableCell, which unexpectedly always resets the current selected item to none with the below code:
if (! lockItemOnEdit) {
updateItem(-1);
}
REGRESSION. Last worked in version 8u66
REPRODUCIBILITY :
This bug can be reproduced always.