Re: Serialization Problem for Streams' Lambda used in Spring beans

2018-06-20 Thread Maxim Solodovnik
Wicket7: https://github.com/wicketstuff/core/blob/wicket-7.x/lambda-parent/lambda/src/main/java/org/wicketstuff/lambda/SerializableBiConsumer.java WBR, Maxim (from mobile, sorry for the typos) On Thu, Jun 21, 2018, 08:13 Maxim Solodovnik wrote: > > https://cwiki.apache.org/confluence/display/WI

Re: Serialization Problem for Streams' Lambda used in Spring beans

2018-06-20 Thread Maxim Solodovnik
https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+8.0#MigrationtoWicket8.0-Provideserializableversionsofjava.util.function.(Supplier|Consumer|Function|BiConsumer)ASFJIRA5aa69414-a9e9-3523-82ec-879b028fb15bWICKET-5991 WBR, Maxim (from mobile, sorry for the typos) On Wed, Jun 2

Re: Ajax and async task

2018-06-20 Thread Zbynek Vavros
Hi Ernesto, sorry I was away in the afternoon/evening. Passing application into runnable constructor is working for me! Many thanks On Wed, Jun 20, 2018 at 11:13 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > https://github.com/reiern70/antilia-bits/blob/master/ > bgprocess/src/ma

Serialization Problem for Streams' Lambda used in Spring beans

2018-06-20 Thread m.xinu
Hi, I'm using Apache Wicket 7.9.0 alongside Spring 5.0.5.RELEASE. In one of my beans, I call some stream API containing multiple lambda expressions. During that page execution, I get following exception: Caused by: java.io.NotSerializableException: org.devocative.metis.service.data.ReportServi

Re: Ajax and async task

2018-06-20 Thread Zbynek Vavros
Works just fine for me here. Seems this may be related to using Google Guice: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread Thread-68 at org.apache.wicket.Application.get(Application.java:236) at org.apache.wicket.guice.GuiceProxyTargetLocator

Re: Ajax and async task

2018-06-20 Thread Maxim Solodovnik
"There is no application attached to current thread" error is usually mean Application.get() is not working On Wed, Jun 20, 2018 at 4:21 PM Zbynek Vavros wrote: > Yeah the difference (from what I see) is that ThreadPoolExecutor is used in > BgProcessApplication. > And usage of > > https://c

Re: Ajax and async task

2018-06-20 Thread Zbynek Vavros
Yeah the difference (from what I see) is that ThreadPoolExecutor is used in BgProcessApplication. And usage of https://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/Session.html#bind() that is non-related. None of that helps me... @Maxim: Not sure what you mean but ThreadContext.getA

Re: Ajax and async task

2018-06-20 Thread Ernesto Reinaldo Barreiro
https://github.com/reiern70/antilia-bits/blob/master/bgprocess/src/main/java/com/antilia/task/TasksRunnable.java#L28 On Wed, Jun 20, 2018 at 12:10 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Did you look at > > https://github.com/reiern70/antilia-bits/tree/master/bgprocess > > >

Re: Ajax and async task

2018-06-20 Thread Ernesto Reinaldo Barreiro
Did you look at https://github.com/reiern70/antilia-bits/tree/master/bgprocess On Wed, Jun 20, 2018 at 12:05 PM, Zbynek Vavros wrote: > Still the same: > > org.apache.wicket.WicketRuntimeException: There is no application attached > to current thread pool-XX-thread-XX > > Zbynek > > > > On We

Re: Ajax and async task

2018-06-20 Thread Maxim Solodovnik
You can use Applucation.get('THE_NAME_OF_YOUR_APP') it works in other threads as well On Wed, Jun 20, 2018 at 4:05 PM Zbynek Vavros wrote: > Still the same: > > org.apache.wicket.WicketRuntimeException: There is no application attached > to current thread pool-XX-thread-XX > > Zbynek > > > > On

Re: Ajax and async task

2018-06-20 Thread Zbynek Vavros
Still the same: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread pool-XX-thread-XX Zbynek On Wed, Jun 20, 2018 at 10:44 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Maybe this can help > > https://github.com/reiern70/antilia-bits/tre

Re: Ajax and async task

2018-06-20 Thread Sebastien Briquet
Hi Zbynek, Some times ago I did a quickstart for async calls with Websocket notification. Not exactly your use-case but it can give you some ideas... https://github.com/sebfz1/wicket-quickstart-cdi-async Best regards, Sebastien

Re: Ajax and async task

2018-06-20 Thread Ernesto Reinaldo Barreiro
Maybe this can help https://github.com/reiern70/antilia-bits/tree/master/bgprocess On Wed, Jun 20, 2018 at 11:13 AM, Zbynek Vavros wrote: > Hi, > > I've got an AjaxButton and hidden panel with progress bar and status > message which is hidden in the beggining. > My idea is to display the panel

Ajax and async task

2018-06-20 Thread Zbynek Vavros
Hi, I've got an AjaxButton and hidden panel with progress bar and status message which is hidden in the beggining. My idea is to display the panel when the button is clicked and span long task. This task would update a counter that the progress will display using AjaxSelfUpdatingTimerBehavior. Th