Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Nested custom xtypes not calling optionsProvider

Avatar

Level 1

We are using a custom xtype to create cusom multifield lists. The xtype takes the declarations from our dialog, and creates repeatable sections based on your standard dialog xml.

We have created another custom xtype, which is a select box, that populates the options based on a function which returns some values in a JSON object from a content node. It works nicely using optionsProvider.

What happens though is when we declare our select xtype within our multifield xtype, the optionsProvider does not fire, hence not populating the options.

 

Does anyone know if there is a known issue whereby optionsProvider isn't called in such circumstances (nested xtypes)?

1 Accepted Solution

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Level 10

If possible - its recommended to avoid using nested xtypes. 

Avatar

Correct answer by
Level 10

Avatar

Level 1

Thanks for both of your replies. I have seen the articles you provided links to Shekhar. I might have to rethink my approach - I do think the nested xtypes is getting a bit messy.