xpoft / spring-vaadin

Spring and Vaadin integration
Other
55 stars 44 forks source link

Sample @Autowired WebApplicationContext #1

Closed jamroks closed 12 years ago

jamroks commented 12 years ago

Hello,

First of all, i really appreciate ou contribution with this vaadin spring integration, it's AWSOME !!

I was looking at sample branch, and i try to test it . So i imported the project on IntelliJ Idea, but everytime i get a red flag error on this piece of code :

@Autowired private WebApplicationContext applicationContext;

The error message that is poping up is : " no bean of ' WebApplicationContext ' type found" .

But when i remove the annotation @Autowired, then everything is green and works !

Do you know why ? or can you explain maybe , i'm doing something wrong

Thanks again and keep up the good work !!

cheers

Réno

xpoft commented 12 years ago

I don't no why it happens. It's only the error message, everything working well. If you remove @Autowired, you can't use "applicationContext" as variable.

xpoft commented 12 years ago

The example updated to use ApplicationContext

jamroks commented 12 years ago

Thanksfor taking the time to answer. Ok i will updated my sample with your new version of the sample