SmartGwt 2.5 - ie9 (and propably all)
When EmptyDisplayValue is set and field is empty (null), the getValue() method returns the value of the EmptyDisplayValue, not null.
It affects the validate method of the ValuesManager, when EmptyDisplayValue used in a required field, on validation no error reported.
FormItem.getValue() - returns bad value
ValuesManager.getValue(String fieldName) - returns bad value
ValuesManager.getItem(String itemID).getValue() - returns correct value
I use this as workaround when getting data from the form, but can't handle the validation method.
When EmptyDisplayValue is set and field is empty (null), the getValue() method returns the value of the EmptyDisplayValue, not null.
It affects the validate method of the ValuesManager, when EmptyDisplayValue used in a required field, on validation no error reported.
FormItem.getValue() - returns bad value
ValuesManager.getValue(String fieldName) - returns bad value
ValuesManager.getItem(String itemID).getValue() - returns correct value
I use this as workaround when getting data from the form, but can't handle the validation method.
Comment