wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: RequestCycle and Jersey Jax-rs REST application
Date Fri, 05 May 2017 16:34:10 GMT
Hi,

See ComponentRenderer and AbstractWebSocketProcessor for inspiration.

On May 5, 2017 4:45 PM, "jdelaire" <jdelaire@gmail.com> wrote:

> Hi Guys,
>
> First let me describe my setup,
>
> I run a Wicket Application (instanciated as WicketFilter) which is mapped
> to
> /* and a ServletContainer which is mapped to /api/* in the same web
> application.
>
> In my REST service handled by Jersey,  I can retrieve the wicket session by
> injecting the HttpServlet request like that;
>
>     @Context
>     private HttpServletRequest servletRequest;
>
> So like that I can retrieve some shared data between the wicket application
> and the Jersey REST services.
>
> Now my issue is the following, in my REST services, I'm calling some legacy
> code that do call like that:
>
> RequestCycle.get().someMethod()
>
> And RequestCycle.get() always return null so it's ending with a null
> pointer
> exception,
>
> Is there any to either set myself the RequestCycle object or some
> hack-alike
> in order to be able to use this legacy code ?
>
> Thanks you!
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/RequestCycle-and-Jersey-Jax-rs-REST-
> application-tp4677786.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message