[Xsltforms-support] Incorrect dialog opens when using repeats with tables
Brought to you by:
alain-couthures
From: David A. <am...@gm...> - 2010-02-20 20:21:52
|
When using an xf:repeat within an HTML table, the dialog that opens from an xsf:show is the correct dialog the first time that the button for the associated trigger is clicked, but clicking any other button subsequently opens the first dialog instead of correctly opening the dialog for the button that was clicked. I have a table with the following structure: <table> <xf:repeat nodeset="item"> <tr> <td> <xf:trigger> <xf:label>Modify</xf:label> <xsf:show ev:event="DOMActivate" dialog="dialog"/> </xf:trigger> </td> ... </tr> <div> <xsf:dialog id="dialog"> ... </xsf:dialog> </div> </xf:repeat> </table> If I replace all the table/tr/td elements with div/span elements, then the behavior is correct. To reproduce the issue, open the attached file "dialog-repeat-table.xhtml" in a browser. Click on the first "Modify" button. The dialog associated with the first button will open. Now, close this dialog, and click the second "Modify" button. The dialog associated with the first button will open, but this is incorrect because the dialog associated with the second button should open instead. If you open the attached file "dialog-repeat-div.xhtml" and try the same actions, then the behavior is correct and the correct dialog will open each time. This file ("dialog-repeat-div.xhtml") uses div/span elements instead of table/tr/td elements, which are used in "dialog-repeat-table.xhtml". I am using revision #314 from the SVN repository. Thank you, David |