Hi,

This should just work as you expect it to.
I don't remember any problems related to this in 6.11.
But if you can reproduce the problem with 6.23/7.3.0 in a quickstart app
then please attach it to JIRA. Thanks!

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

On Wed, Jul 13, 2016 at 2:37 PM, mashleyttu <mash...@gmail.com> wrote:

> Hi All,
>
> When we include a property on our Page class with the @SpringBean
> annotation
> it doesn't seem to initialized the @Autowired properties of the bean when
> using the GCLib Proxy. If we set wrapInProxy to false as follows, wicket
> skips the GCLib code and simply pulls the bean using Springs getBean
> method.
>
> this.getComponentInstantiationListeners().add(new
> SpringComponentInjector(this,AppCommon.getApplicationContext(),false));
>
> This has the side effect of us having to mark all our @SpringBean
> properties
> as transient and call Injector.get().inject(this); for all of our AJAX
> calls.
>
> Shouldn't the GCLib proxy still pull the bean from the Spring context and
> then wrap it in a proxy?
>
> Note: We are still using an older version of Wicket 6.11. Maybe this has
> been updated in future releases.
>
> Thanks,
> Matt
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-SpringBean-Autowired-properties-not-Initialized-tp4675091.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to