UINumberCellEditor in VAADIN
3 posts
• Page 1 of 1
UINumberCellEditor in VAADIN
Hi,
it seems that
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?
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?
- lucdep
- Posts: 53
- Joined: Wed Oct 10, 2018 12:01 pm
Re: UINumberCellEditor in VAADIN
Are you sure that the column is a NUMBER column, means that the data type is a BigDecimalDataType?
e.g.
The format works in our simple test application.
e.g.
- Code: Select all
book.getRowDefinition().getColumnDefinition("NUMBER").getDataType();
The format works in our simple test application.
-
Support@SIB - Posts: 353
- Joined: Mon Sep 28, 2009 1:56 pm
Re: UINumberCellEditor in VAADIN
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.
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.
- lucdep
- Posts: 53
- Joined: Wed Oct 10, 2018 12:01 pm
3 posts
• Page 1 of 1