Datatable format is lost when hiding and re-displaying datatables within a nested structure
I believe I may have found a bug related to the datatables, which is present in the latest (10-23-2009) nightly build, and was also present in the build I'm currently working with (8-14-2009).
When datatables are hidden and re-displayed through the use of <xf:group> statements, the format, for all datatables that are deeper than the current element where the show/hide trigger was called, is lost.
I've attached a reproducible example to this message. To reproduce:
1) Download the example, place in the 'WEB-INF/resources/apps' folder, and run. All datatables in the form are currently fine.
2) Press the 'Hide Controls' button, and then press the 'Show Controls' button. The first datatable is fine, but the others deeper within the XML structure lose their formatting.
3) Now press the 'Reload Page' button. The form reloads, and everything is back to normal.
4) In page_flow.xml, change "standardxform.xhtml" to "standardxform_no_xbl.xhtml" and repeat steps 1-3. This is just to show that the bug occurs even when XBL components aren't used (except the datatable, of course).
If something is incorrect, please let me know. Thanks!
Re: Datatable format is lost when hiding and re-displaying datatables within a nested structure
On Fri, Oct 23, 2009 at 1:03 PM, Philip.Cantin <[hidden email]> wrote:
> 2) Press the 'Hide Controls' button, and then press the 'Show Controls'
> button. The first datatable is fine, but the others deeper within the XML
> structure lose their formatting.
I have been able to reproduce this. A screencast for reference:
Re: Re: Datatable format is lost when hiding and re-displaying datatables within a nested structure
When a datatable is within an XForms repeat and when one of its
iterations is deleted and recreated, this iteration is physically
destroyed from the DOM and recreated. The iteration of the datatable
needs thus to be initialized again and the datatable implementation
failed to do so.