wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Issue with REST Sessions in Wicket-Shiro-Hibernate
Date Tue, 26 Jan 2016 14:41:52 GMT
Glad it works now!

Better move  Injector.get().inject(application); to the constructor of
YourWicketApplication:  Injector.get().inject(this);

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Jan 26, 2016 at 3:00 PM, MM_at_ANO <marina_machado@ano.pt> wrote:

> Hi.
>
> Thank you a lot for answering.
> Your suggestion helped me in solving the problem .
> I also had to add an injection call in the WicketApplication getter, as
> follows:
>
> public static WicketApplication get() {
>    Application application = Application.get();
>    Injector.get().inject(application);
>    return (WicketApplication) application;
> }
>
> Without it, the getter kept on returning null.
> Now I can easily access Session and Session factories without problem.
> Once again thank you for your quick answer.
> You help is much appreciated.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Issue-with-REST-Sessions-in-Wicket-Shiro-Hibernate-tp4673417p4673439.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