Community
Participate
Working Groups
To reproduce: 1. use a DecimalTextRidget that is bound to a new DoubleBean(null) 2. add a ValidRange(0.0, 10.0) or ValidRangeAllowEmpty(5.0, 10.0) rule with ValidationTime.UPDATE_ON_MODEL. Both rules accept null (null equiv. zero equiv. empty). 3. invoke ridget.updateFromModel() Result: the error marker is set Excpected: the error marker should not be set. --- The cause is that DecimalTextRidget overrides getText() to perform some formatting on the internal string. This is missed when manually verifiying the value in updateFromModel() since it accesses the value directly.
Fixed in HEAD.