Change By: Federico Grilli (20/May/14 12:38 PM)
Description: Vaadin does not provide one  StringToEnumConvert  by default so this is what one gets when trying to display an Enum property in a text field.
{code}
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)
{code}

The fix consists in creating a simple Converter and add a check in AbstractFieldFactory.getView(..) (see attached patch)
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]>
----------------------------------------------------------------

Reply via email to