This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

UINumberCellEditor in VAADIN

General questions regarding the development with JavaFX UI for JVx.

UINumberCellEditor in VAADIN

Postby lucdep » Wed Jul 17, 2019 10:52 am

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?
lucdep
 
Posts: 53
Joined: Wed Oct 10, 2018 12:01 pm

Re: UINumberCellEditor in VAADIN

Postby Support@SIB » Wed Jul 17, 2019 1:09 pm

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.
User avatar
Support@SIB
 
Posts: 353
Joined: Mon Sep 28, 2009 1:56 pm

Re: UINumberCellEditor in VAADIN

Postby lucdep » Wed Jul 17, 2019 4:15 pm

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.
lucdep
 
Posts: 53
Joined: Wed Oct 10, 2018 12:01 pm


Return to Development