alejandro-du / crudui

Automatically generate CRUD-like Vaadin views for any Java Bean
https://vaadin.com/directory#!addon/crud-ui-add-on
Apache License 2.0
85 stars 52 forks source link

BUG: Grid selection stops working after canceled change or update error #16

Closed amagnolo closed 6 years ago

amagnolo commented 6 years ago

Steps to reproduce:

  1. click an item in a CrudLayout (either HorizontalSplitCrudLayout or WindowBasedCrudLayout)
  2. click "update" button
  3. change a value in an input field
  4. click "cancel" button
  5. click another item in the grid

now both the old item and the newly clicked are selected in the grid. The old item can't be selected anymore to update its value. The same problem occurs if at step 4 you click "update" but an Exception occurs (i.e. a duplicate key saving to database). Tested with version 2.1.1