Page 1 of 1

UINumberCellEditor in VAADIN

PostPosted: Wed Jul 17, 2019 10:52 am
by lucdep
Hi,

it seems that

Code: Select all
editDealDealDealPipelineAmount.setCellEditor(new UINumberCellEditor(".00"));


doesn't work in VAADIN althought it works correctly in JavaFX.

In VAADIN the number in the field is not shown at all when the SetCellEditor line is active. When I comment this line out, the number is shown again non-formatted.

Am I doing something wrong?

Re: UINumberCellEditor in VAADIN

PostPosted: Wed Jul 17, 2019 1:09 pm
by Support@SIB
Are you sure that the column is a NUMBER column, means that the data type is a BigDecimalDataType?

e.g.
Code: Select all
book.getRowDefinition().getColumnDefinition("NUMBER").getDataType();


The format works in our simple test application.

Re: UINumberCellEditor in VAADIN

PostPosted: Wed Jul 17, 2019 4:15 pm
by lucdep
Hi,

Of course, thanks a lot!!

For one reason or another the field definition was indeed Key instead of Number. Don't know how this was changed. (Key is of course a Number as well for Postgresql). Strange then however that this is working OK in JavaFX and there is no error there.