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 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: LambdaModel use

2018-11-14 Thread Bas Gooren
Hi! Well, that’s a different use-case :-) We have written a specialized ConversionModel for the exact same reason: convert an underlying model to a target type. And of course a specialization of that called LambdaConversionModel, which also allows conversion of null values. Met vriendelijke

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