![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
5.2.4 |
|
Assignee:
|
Unassigned |
|
Attachments:
|
enum-converter.patch |
|
Components:
|
forms |
|
Created:
|
20/May/14 12:37 PM
|
|
Description:
|
Vaadin does not provide one by default so this is what one gets when trying to display an Enum property in a text field.
Caused by: com.vaadin.data.util.converter.Converter$ConversionException: Unable to convert value of type info.magnolia.task.Task$Status to presentation type class java.lang.String. No converter is set and the types are not compatible.
at com.vaadin.data.util.converter.ConverterUtil.convertFromModel(ConverterUtil.java:116)
at com.vaadin.ui.Label.getDataSourceValue(Label.java:187)
at com.vaadin.ui.Label.setPropertyDataSource(Label.java:260)
at info.magnolia.ui.form.field.factory.AbstractFieldFactory.getView(AbstractFieldFactory.java:205)
at info.magnolia.ui.dialog.formdialog.FormBuilder.buildView(FormBuilder.java:135)
The fix consists in creating a simple Converter and add a check in AbstractFieldFactory.getView(..) (see attached patch)
|
|
Fix Versions:
|
5.2.x, 5.3 |
|
Project:
|
Magnolia UI
|
|
Priority:
|
Major
|
|
Reporter:
|
Federico Grilli
|
|
Security Level:
|
Public |
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------