Change By: Frank Sommer (13/Mar/14 11:00 AM)
Summary: Exceptions on using generic fields with extends on  top  field  level
Description: If you use the extends mechanism for generic fields  below the dialogs node , the ConfiguredDialogDefinitionManager throws a ClassCastException. 

{noformat}
14-03-13 10:46:40 ERROR AUTHOR[Thread-22]info.magnolia.ui.dialog.registry.ConfiguredDialogDefinitionManager: Unable to create provider for dialog [test-module:generic/extendedField]
java.lang.ClassCastException: info.magnolia.ui.form.field.definition.SelectFieldDefinition cannot be cast to info.magnolia.ui.dialog.definition.ConfiguredFormDialogDefinition 
  at info.magnolia.ui.dialog.registry.ConfiguredDialogDefinitionProvider.<init>(ConfiguredDialogDefinitionProvider.java:58)
  at info.magnolia.ui.dialog.registry.ConfiguredDialogDefinitionManager.createProvider(ConfiguredDialogDefinitionManager.java:117)
  at info.magnolia.ui.dialog.registry.ConfiguredDialogDefinitionManager$1.visit(ConfiguredDialogDefinitionManager.java:90)
  at info.magnolia.jcr.util.NodeUtil.visit(NodeUtil.java:654)
  at info.magnolia.jcr.util.NodeUtil.visit(NodeUtil.java:656)
  at info.magnolia.ui.dialog.registry.ConfiguredDialogDefinitionManager.reload(ConfiguredDialogDefinitionManager.java:82)
  at info.magnolia.cms.util.ModuleConfigurationObservingManager.reload(ModuleConfigurationObservingManager.java:112)
{noformat}

Reason is that it tries to registrate the generic field as dialog definition. The prior check on the node is to weak. So it is useless. An _instanceof_ check in {{info.magnolia.ui.dialog.registry.ConfiguredDialogDefinitionManager#createProvider}} would make more sense.
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