Re: [Xsltforms-support] Using an xsf:dialog inside of an xf:repeat
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2009-12-30 08:54:03
|
David, > I would like to create multiple dialogs with an xf:repeat and have > them open/close with multiple triggers. > > Because I am using the attribute 'id="dialog"' for the xsf:dialog > element and that xf:dialog element is inside an xf:repeat, the divs > generated by the xsf:dialog will all have the same "id" attribute > value, so only the first generated div gets an "id" attribute of > "dialog" and the rest all get marked as clones. > > Because only the first generated div gets an "id" attribute of > "dialog", all the triggers open the same overlay dialog (which is the > first generated div). > In AJAXForms, ajx:dialog couldn't be cloned. To enable this with xsf:dialog, a new Javascript class has to be created. Probably, required components are already present, IdManager for example, but I have to perform some tests to find the best way. Can you please send me a full test case? Thanks! -Alain |