vaadin / tree-grid

A UI component add-on for Vaadin 7 which adds the ability to display and edit hierarchical data source in the Grid
Apache License 2.0
7 stars 7 forks source link

Exception when reordering columns #6

Closed wbadam closed 7 years ago

wbadam commented 7 years ago

GridState#columnOrder is not accessible via getDeclaredField() because it is in super class.

java.lang.NoSuchFieldException: columnOrder
    at java.lang.Class.getDeclaredField(Class.java:2070)
    at com.vaadin.ui.Grid$3.columnsReordered(Grid.java:4716)
enkaradura commented 7 years ago

I am also getting an error when reordering columns, although the columns get ordered. Anybody has a temporary solution for this?

wbadam commented 7 years ago

As temporary fix, replaced GridServerRpc with one that uses getField() instead of getDeclaredField() so that fields in state subclass could be accessed through reflection.

Should be removed when vaadin/framework#8342 gets approved.