Announcement Announcement Module
Collapse
No announcement yet.
Why autowired is not working. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why autowired is not working.

    Hi,

    Our vaadin project is using spring DI and we want to use autowire in it. Autowired annotation is not working with Application class. An islolated sample project is attached but lib folder is not included because attachment size limit.

    Any suggestions?

    Thanks,
    Beslan

  • #2
    Maybe you should use something like below in your init method?

    Code:
    SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext (this);

    Comment


    • #3
      Thanks, it worked. But I still don't know why I need this code, we are using @Autowired in another project without it.

      Comment


      • #4
        It is needed since Testvaadin6Application is not configured (instantiated) through spring

        Comment


        • #5
          Ok. Is there any chance to do this with spring. Converting Testvaadin6Application to Spring bean is not working.

          Comment

          Working...
          X