Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-22 Thread sven
Hi, If your queries are so expensive you can just keep its results as a member in your component. Make a new query each time a filter changes, and let your dataProvider just iterate over the cached list. Note that your Data gets serialized with your page though. Sven

Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-19 Thread Sandor Feher
Hi Sven, Sorry, I did not notice your answer so far. Okay. Let's try to see things from different angle :) Yes I use spring. I tried to reduce the number of unnecessary queries. To achieve this I try to catch if my table filtered or a new item added or a dropdownchoice changed and so on. It

Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-14 Thread Sven Meier
Hi Sandor, why doesn't your myDAO 'detach'(=clear) its cache automatically whenever a new item is added? Wicket might call #detach() in a lot of circumstances, thus this has to be a very quick operation. It's better to avoid tying your caching to your UI layer. If you're using Spring, you

Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-14 Thread Sandor Feher
Hi, Sorry for the confusing. Let me explain it more. Let's suppose a simple CRUD page with a single DataTable and it's dataprovider. I need to refresh my datatable after a new item added. So far I did it like this: mw = new ModalWindow("modal"); mw.setWindowClosedCallback(new

Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-14 Thread Bas Gooren
Hi Sandor, Can you explain more clearly (step by step, request by request) what is happening and what you expect to happen? Most dataproviders (e.g. ones backed by a database model) reload their underlying data on every request, so reloading should be easy (simply add the datatable to the ajax

Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-11-12 Thread Sandor Feher
Hi, I feel a little bit dump but I can't fix it. At the moment it looks like if I want my DataTable get reloaded then I must call explicitly a public method in my DataProvider. So far I simply called detachModel() on my DataTable and in detach method I reloaded list using my DAO. Because of

Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-10-30 Thread Sandor Feher
Hi Sven, Ok, thanks. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: AjaxSelfUpdatingBehaviour detaches my DataTable

2018-10-29 Thread Sven Meier
-session-timeout-properly-td4675541.html and I use the same behavior for refreshing my NotificationPanel too. My only problem/observation that AjaxSelfUpdatingBehaviour detaches my DataTable/DataProvider too although it has nothing to do with them. (It detaches at every 10 second when my Notification

AjaxSelfUpdatingBehaviour detaches my DataTable

2018-10-29 Thread Sandor Feher
that AjaxSelfUpdatingBehaviour detaches my DataTable/DataProvider too although it has nothing to do with them. (It detaches at every 10 second when my Notification panel get refreshed). I'm just wondering if it is the expected behaviour or I missed something. I created a quickstart for demonstrating the situation