Re: Wicket rest and retrofit rest client

2014-05-16 Thread Sven Meier
Hi, Retrofit callbacks are invoked asynchronously. Once #success() is called, the Wicket response is probably written already. You can't/shouldn't do anything related to Wicket in a non-request thread. Regards Sven On 05/07/2014 07:49 PM, Noven wrote: Hi all, I am experimenting with

Wicket rest and retrofit rest client

2014-05-15 Thread Noven
Hi all, I am experimenting with retrofit (http://square.github.io/retrofit/) rest client and have issue that I can't fix.  I have a form that on submit will call the wicket-rest service.  form.add(new AjaxButton(submit) {             @Override             protected void onSubmit(final

Re: Wicket rest and retrofit rest client

2014-05-11 Thread Martin Grigorov
Hi, It seems Retrofit starts a Thread ('in thread Retrofit-Idle') to make the requests. A RequestCycle is exported as a ThreadLocal only in the web container worker threads. See ComponentRenderer#renderPage() and WicketFilter for examples how to construct RequestCycle. Martin Grigorov Wicket