[
http://jira.magnolia.info/browse/MAGNOLIA-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16415#action_16415
]
Fabrizio Giustina commented on MAGNOLIA-2175:
---------------------------------------------
a few changes to existing controls needed in order to make this possible:
- all the info.magnolia.cms.gui.dialog.Dialog* have protected constructor which
needs to be turned to public in order to be able to instantiate them using
FactoryUtils
- DialogControl must extends Cloneable, so that we can save a single configured
instance in the registry, but create a copy at each use (it's definitively not
a singleton...)
any thought on applying those changes for 3.6?
> Configurable controls/dialogs (use Content2Bean in controls configuration)
> --------------------------------------------------------------------------
>
> Key: MAGNOLIA-2175
> URL: http://jira.magnolia.info/browse/MAGNOLIA-2175
> Project: Magnolia
> Issue Type: Improvement
> Components: gui
> Affects Versions: 3.5.8
> Reporter: Fabrizio Giustina
> Assignee: Boris Kraft
> Priority: Critical
> Fix For: 3.6
>
>
> Controls are actually loaded explicitly only using their class name, for
> example:
> config:/modules/adminInterface/controls/freemarker/class =
> info.magnolia.cms.gui.dialog.DialogFreemarker.java
> without using Content2Bean, so it's not possible to make them parametric and
> to configure them. Especially for the freemarker dialog this could be really
> useful, in order to create a specific control (for example "grid") backed by
> a fixed ftl template.
> In order to do this, info.magnolia.cms.gui.dialog.ControlsManager needs to be
> modified in order to use Content2Bean, but we also need to modify how dialogs
> are registered and reused (currently not by instance but by class).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------