I have reached a dead-end trying to use the DialogDate and DialogLink widgets.

The only way to initialize them is by using:

DialogFactory.getDialogControlInstanceByName(...) which instantiate them and automatically calls the init(...).

But inside the init(...) method both widgets are trying to access their name (getName()) this resulting in an javax.jcr.RepositoryException.

Indeed this exception is not perpetuated above NodeData, but IMO it is a mistake to let this happen.

My proposal is to create inside the parent DialogEditWithButton a method hook that would allow this configuration to happen right before the drawHtml(...), so that the user can safely configure the widgets.

If you agree with this I can immediately commit the suggested changes.

I agree, just commit

Philipp Bracher


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to