Open haritos30 opened 3 years ago
I'll try to have a look tomorrow (somehow it rings a bell...)
Thank you!
I tested against wicket-kendo-ui-7.15.0
and wicket-kendo-ui-8.10.0
and it works as expected (see image bellow).
When I mentioned that it rings a bell, I know remember that it used to be an issue where only one DataProvider
could exist in a rendered page (so the last one IIRC). I do then suppose that you are using an older version.
Please upgrade and the problem should be gone. If it is not the case, please create a quickstart that repro the issue in your GitHub account... I'm closing the issue, please reopen if needed.
Sorry but I can't find version 7.15.0. The latest I can find in the mvn repository is 7.10.2 (this is the version I'm already using)
ok I will try to build from source code
Oh, seems you are right! That's surprising because the release tag exits....
I will re-roll the release on Saturday...
Sorry but the problem is still 100% reproducible even with version 7.15.0\
ok I don't know how but I got it working with different options in each dataTable. nothing else changed, code is the same....
ok I found it and it's 100% reproducible. If you use the same options in the 2 tables the problem occurs. The reason you failed to reproduce it was because you used different options object for your 2 tables.
Please verify.
Thank you in advance
Oh, I would not have expected that at all! I will have a look this weekend...
Ok, found the issue. It easy to fix but may have some side effects. I need to assess the risk of silent breaks...
For now the workaround is also trivial, you just need Options
objects that are not the same Object. Eg:
new DataTable<>("datatable", ..., new Options(options)) // will do a shallow copy
I'm not sure if related, but maybe so.
Since recent update(s) any DataTable is visible with filled data only once, when first time loaded. After that any DataTable is empty.
Hello all,
I'm using wicket-jquery 7 and I'm trying to do something that seems very simple: Use 2 datatables in the same page. In my case dataTable & dataTable2 have different data however as you can see it's the same table in the page. Even if I use a different data models the result is the same: the last datatable being added is the ONLY one that is being rendered for all cases. This is the same if you use 3,4 or more datatables. It is always the last one that is shown for all datatable instances. In my example I also use an accordion but this not related to the problem. Even if I don't use an accordion and simply try to display two tables in the same page the result is the same. I'm attaching the java and HTML code but it's rather basic, nothing fancy.
Please help me with this problem because it is driving me nuts. I'm trying to find a solution for 3 days now.
Thank you in advance! Haritos
HTML: