On Nov 16, 2007 8:15 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > components are not instantiated on every request - they are only > instantiated when YOU instantiate them using the NEW operator...wicket > is unmanaged. > > the problem with using onbeforerender is that some components need > access to resources from inside their constructors which is too early > to be handled by onbeforerender. this is why spring and guice > integrations use icomponentinstantiationlistener to inject fields. > also dont forget that what you want to inject is some sort of proxy > because components are serialized, see wicket-ioc module for such a > proxy impl.
wicket-seam-test does this, see SeamProxyTargetLocator. Eelco --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
