Hi Oliver! Take a look at the Controls for DAM (images, files) - these controls already implement something like you describe. IIRC the dialogs are rendered once, and then sent to the user. The Java-Code is called again when the user saves. There is no callback logic or something like that, where you can react to a click in Java-Code while the dialog is open. So the way I see it, you have 2 Options:
1. Render the entire dialog, including ALL subcontrols in advance, but leave them hidden and use jQuery/JavaScript to show the correct controls depending on the user's selection. You may have to implement some custom saveHandler logic to save the right values. 2. "Jump ahead" to Magnolia 5, and take a look at Vaadin. By implementing your Dialog/Controls in Vaadin, you can react to the user's input in exactly the way you need. See: http://wiki.magnolia-cms.com/pages/viewpage.action?pageId=48726292 for some information about using Vaadin in Magnolia 4.x Regards from Vienna, Richard Von: [email protected] [mailto:[email protected]] Im Auftrag von Oliver Becherer Gesendet: Dienstag, 05. April 2011 13:03 An: [email protected] Betreff: [magnolia-user] Custom DialogSelect Control -> filling subcontrols Hi there, i have a custom control extending DialogSelect . Based on that I want to provide a second DialogSelect Control, that is filled with options dependent on selection of first control. I've seen, it's possible to build a hierarchy of controls by nesting them into each other having access to the subcontrols via DialogControlImpl.getSub() or getSubs(). Here are my questions : - How can I trigger the selection of an item within DialogSelect (entrypoint for filling dependent DialogSelect)? - Having the selected item, how can I start fillment of second comboBox (without saving complete dialog before...) ? Is that possible at all? Thnx in advance for your help! regards Olli ________________________________ Please consider the environment before printing this e-mail. The contents of this e-mail message (including any attachments) are confidential to and are intended to be conveyed for the use of the recipient to whom it is addressed only. If you receive this transmission in error, please notify the sender of this immediately and delete the message from your system. Any distribution, reproduction or use of this message by someone other than recipient is not authorized and may be unlawful. ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
