in his very first email he said he is stuck on jdk1.4

-igor

On Fri, Sep 12, 2008 at 2:31 PM, jcgarciam <[EMAIL PROTECTED]> wrote:
>
> Hi everyone and let me thanks you guys for this awesome framework, now back
> to the topic :)
>
>  you can use SpringComponentInjector from the wicket-spring-anot, see the
> following example which is shown at
> http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach
> http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach :
> <code>
> class MyApplication extends WebApplication {
>    public void init() {
>        super.init();
>        addComponentInstantiationListener(new
> SpringComponentInjector(this));
>    }
> }
>
> class EditContact extends WebPage {
>   @SpringBean
>   private ContactDao dao;
>
>   @SpringBean(name="userDao")
>   private UserDao userDao;
>
>   public EditContact(long userId) {
>       ...
>   }
> }
> </code>
>
> mahone9 wrote:
>>
>> Thanks for ur quick response.
>> I already read this article. But I don´t like this approach calling this
>> creation Proxy stuff when I need it for
>> from a Wicket-Bean.
>>
>> private ContactDao dao =
>> LazyInitProxyFactory.createProxy(ContractDao.class,
>>       new IProxyTargetLocator() {
>>          public Object locateProxyTarget() {
>>             return
>> ((MyApplication)Application.get()).getSpringContext().getBean("contactDao");
>>          }
>>       }
>>    }
>>
>> I´m knew to it and I´m struggeling for the right solution.
>> Is there no possibility to tell spring or wicket to do that in the
>> background.
>>
>> I´m just don´t want to care about it... is it now a dao bean or simple
>> bean or this special kind of wicket bean which I have to instantiate in
>> another way.
>>
>> What I want is simple to set this stuff in the applicationContext file.
>>
>> And that spring does the injection throug the "setter-method".
>>
>> Thanks in advance for ur comments.
>> I apprciate it very much.
>>
>> Cheers Phil
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462602p19464502.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to