-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
-
Empty show more show less
-
UI Framework 11, UI Framework 12
-
2
salutation:
label: salutation
$type: textField
type: java.lang.Long
converterClass: com.vaadin.data.converter.StringToLongConverter
This converts text field input into Long type everything works except when field is left empty then this fails on
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number at com.vaadin.data.converter.AbstractStringToNumberConverter.convertToPresentation(AbstractStringToNumberConverter.java:40) ~[vaadin-server-8.8.5.jar:8.8.5]
Problem is in info.magnolia.ui.field.TextFieldBinder where is set withNullRepresentation("") which then cause ClassCastException
Instead of TextFieldBinder the info.magnolia.ui.field.factory.FieldBinder$Default could be used but that one then fails with NPE, because vaadin TextField doesn't support null value.
- is related to
-
MGNLUI-5026 Consider a bridge between m5 and m6 dialog/editor definitions
- Closed
-
MGNLUI-5532 Issue with nullRepresentation vs default value in FieldBinders
- Closed
- relates to
-
MGNLCI-19 Text information not displayed in import Task
- Open