Re: handling non serializable objects

2015-05-02 Thread Martin Grigorov
Hi, Please show us how A instance is being created. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, May 2, 2015 at 11:32 PM, Chris wrote: > Hi Martin, > > I have a page with a field of type A that is set over a broadcast event. > Class A has a dao which is

Re: handling non serializable objects

2015-05-02 Thread Chris
Hi Martin, I have a page with a field of type A that is set over a broadcast event. Class A has a dao which is injected via constructor. The field dao cannot be serializable. How could I change this so a proxy is injected? Thanks! Page { A a; public void onEvent(IEvent event) { supe

Re: Event driven DataTable refresh

2015-05-02 Thread Martin Grigorov
Hi, On May 2, 2015 10:22 PM, "Sandor Feher" wrote: > > Hi, > > A have a WebMarkupContainer and a DataTable inside in it. > I would like to refresh the datatable based on my spring bean's event. To > achieve this I added an AjaxSelfUpdatingBehaviour to container. My problem > is that I'm not able t

Re: Event driven DataTable refresh

2015-05-02 Thread Sandor Feher
Thanks for the suggestions. The event the container or table need to be refreshed on comes from a spring bean. The scenario is that if a user uploads a file via web service then a the uploads panel need to be refreshed. So I check the spring bean's state to see if an upload event occured. If so the

Re: handling non serializable objects

2015-05-02 Thread Martin Grigorov
Hi, Injected how? wicket-spring and -guice inject serializable proxies so there is no such issue with them On May 2, 2015 10:26 PM, "Chris" wrote: > Hi all, > > what is the best approach to handle non-serializable objects in Wicket > pages? E.g. when an object has a DAO injected and this object

handling non serializable objects

2015-05-02 Thread Chris
Hi all, what is the best approach to handle non-serializable objects in Wicket pages? E.g. when an object has a DAO injected and this object is a field of a Wicket page? Thanks a lot, Chris - To unsubscribe, e-mail: users-unsub

Event driven DataTable refresh

2015-05-02 Thread Sandor Feher
Hi, A have a WebMarkupContainer and a DataTable inside in it. I would like to refresh the datatable based on my spring bean's event. To achieve this I added an AjaxSelfUpdatingBehaviour to container. My problem is that I'm not able to control the refresh because at onPostProcessTarget the refresh

Re: Event driven DataTable refresh

2015-05-02 Thread kovaron
If the update could be tied to some action taken elsewhere, like updating a textfield, clicking a button or link you should consider adding the webmarkupContainer to the ajaxrequesttarget on the onEvent, onSubmit etc of those components. Before adding you have to change the backing model of the tab