Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
6.2.8
-
None
-
None
Description
Steps to reproduce
- Create a new component like this
label: Test form: properties: limit: $type: textField label: My Label i18n: true type: java.lang.Long converterClass: com.vaadin.data.converter.StringToLongConverter defaultValue: 8 footerLayout: $type: defaultEditorActionLayout primaryActions: commit: commit - Try to create it and check an error is thrown (java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Number (java.lang.String and java.lang.Number are in module java.base of loader 'bootstrap')
Expected results
The dialog opens with the default Value loaded on the textField
Actual results
The dialog doesn't open because an error is thrown
Workaround
N/A
Development notes
If removed the defaultValue property, it works as expected and the transformerClass transforms the field from String to Long
Checklists
Acceptance criteria
Attachments
Issue Links
- is superseded by
-
MGNLUI-6375 Remove generic type of default value in ValueBoundProperty
-
- Closed
-