Raj Patlolla wrote: > Hi, I am trying to build a component dialog in magnolia like this > > form: > tabs: > - name: tabLink > label: Link > fields: > - name: listStyle > class: info.magnolia.ui.form.field.definition.SelectFieldDefinition > label: List style > options: > - name: bullet > value: bullet > selected: true > label: Bullet > - name: ordered > value: ordered > label: Ordered > - name: inline > value: inline > label: Inline > > Here the options part is hard coded. i need to read them with ajax call and > populate in the dialog box select field.
You can create your own class (something like AjaxSelectFieldDefinition) extending SelectFieldDefinition and override the getOptions() method in it to read the options from wherever you like. You can then set that class on the listStyle field and remove the options sub node, since that's no longer used. Nils. ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------