vaadin4spring icon indicating copy to clipboard operation
vaadin4spring copied to clipboard

Add TouchKit demo application

Open peholmst opened this issue 10 years ago • 4 comments

peholmst avatar Apr 01 '14 13:04 peholmst

This would be really nice to have. Right now I'm trying to play with Touchkit and vaadin4spring and run into the issue of not being able to get the NavigationView managed by Spring. Therefore, no @PostConstruct methods are called and no services are used. I have now a very nice UI but useless due to not being able to use the services :O( Posted this issue on stackoverflow: http://stackoverflow.com/questions/26962415/vaadin4spring-and-vaadin-touchkit-navigationview

frandevel avatar Nov 16 '14 21:11 frandevel

I answered you question on stack overflow, I hope that helps to get forward.

mstahv avatar Nov 17 '14 15:11 mstahv

Thanks a lot @mstahv . I'll come back with feedback.

frandevel avatar Nov 17 '14 16:11 frandevel

Hi @mstahv . The tip really helped to identify a code error. I was passing the NavigationManager a new manually instantiated view. Sorry. I removed @VaadinView annotation an treated it as any other AbstractComponentContainer and it's working fine now, with @VaadinComponent The following question would be about the best practices of, either autowiring the existing available views in the UI, or letting the views unmanaged and passing into the constructor of the view the needed services. Having this way, the UI, as the only managed bean

frandevel avatar Nov 17 '14 18:11 frandevel