vaadin4spring icon indicating copy to clipboard operation
vaadin4spring copied to clipboard

Eagerly instantiating UI-scoped beans?

Open peholmst opened this issue 10 years ago • 2 comments

Check if there is a way of instantiating a UI scoped bean when the UI scope is activated, even though the bean has not been injected anywhere.

peholmst avatar Jun 02 '14 07:06 peholmst

That would be nice: I had a hard time figuring out why my view events where not picked-up by the presenter. As a workaroud I had to inject the presenter in my UI class.

micmana avatar Oct 14 '14 16:10 micmana

My, perhaps sloppy, answer to this was to ask for the beans from the ApplicationContext via annotation in UI.init().

zkendall avatar Jan 07 '15 23:01 zkendall