You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 36 Next »

Magnolia 5 UI field transformer classes no longer exist in the Magnolia 6 UI framework. The transformer functionality is now distributed among different components. The following is a summary of the features the components do:

  • Modify the target property name by appending a locale suffix or by prepending a composite field prefix. This is now done by concrete PropertySet implementations (JcrItemPropertySet) and/or by PropertyNameDecorator.
  • Resolve an item data source of complex fields, a functionality usually covered by item providers.
  • Manage item data sources of multi-value field entries. This is handled by MultiFormView.EntryResolution, which resolves the children and binds each of them to the item provider strategy.

Replacements for field transformers

Default 5 UI transformer classes

info.magnolia.ui.form.field.transformer.* In 6 UI
basic.BasicTransformer Not required and not used. Its functions are obsolete; some are taken over by Vaadin PropertySet.
composite.CompositeTransformer

Use info.magnolia.ui.editor.CurrentItemProvider and set propertyNameDecorator to info.magnolia.ui.field.PrefixNameDecorator.

composite.SwitchableTransformer

Use info.magnolia.ui.editor.CurrentItemProvider and set propertyNameDecorator to info.magnolia.ui.field.PrefixNameDecorator.

Other 5 UI transformer classes

info.magnolia.ui.form.field.transformer.*In 6 UI
composite.DelegatingCompositeFieldTransformerinfo.magnolia.ui.editor.CurrentItemProvider
composite.NoOpCompositeTransformerNot needed.
multi.DelegatingMultiValueFieldTransformerinfo.magnolia.ui.editor.CurrentItemProvider
multi.DelegatingMultiValueSubnodeTransformer (warning) 6.2.1+

Use info.magnolia.ui.editor.JcrChildNodeProvider and set supportI18N to false and propertyNameDecorator to info.magnolia.ui.field.AlwaysEmptyPrefixNameDecorator (in info.magnolia.ui.editor.MultiFieldEntryResolution).

multi.MultiValueChildNodeTransformerinfo.magnolia.ui.editor.CurrentItemProvider
multi.MultiValueChildrenNodeTransformerinfo.magnolia.ui.editor.CurrentItemProvider
multi.MultiValueJSONTransformerinfo.magnolia.rest.ui.field.JsonMultiFieldProvider
multi.MultiValueSubChildrenNodePropertiesTransformer (warning) 6.2.1+info.magnolia.ui.editor.JcrChildNodeProvider
multi.MultiValueSubChildrenNodeTransformerinfo.magnolia.ui.editor.CurrentItemProvider

Personalization (trait) transformers

The 5 UI transformers with personalization-related functions have undergone the following changes, but still use the old framework (magnolia-personalization-compatibility).

info.magnolia.personalization.* Description
cookie.CookieFieldTransformerCustom transformer for cookie traits.
ui.SimpleTraitValueTransformerNow functions as the default trait transformer.
visitor.transformer.VisitorTraitListToSetTransformerStill exists, but no longer needed.
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels