Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091001

Editable TableView commit on focus change doesn't always work

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • javafx
    • Ubuntu 12.10, Windows 7
      Java(TM) SE Runtime Environment (build 1.8.0-b132)

      I'm using the Example 12-11 to "to commit the edit on the focus change, which is an expected user experience" from here http://docs.oracle.com/javafx/2/ui_controls/table-view.htm
      It refers to an older version of JavaFX so it might be outdated but I couldn't find any other documentation to fulfil the "edit on focus change" requirement.
      The given solution works as expected when the user edits the cell and clicks outside the table or on the same row the edited cell belongs but it discards the changes if the user clicks on some other row of the table.
      As the documentation states, the "commit on focus change" is often an expected behaviour and it would be nice to have it provided by the TextFieldTableCell or something similar (maybe deactivated by default if you feel it's not that often expected).
      Others facing this: http://stackoverflow.com/questions/21457902/javafx-tableview-cell-editor

            Unassigned Unassigned
            avacondiojfx Andrea Vacondio (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported: