Helper class for resolving messages in a Vaadin UI. This is effectively a wrapper around {@link org.springframework.context.ApplicationContext}that uses the locale of the current UI to lookup messages. Use it like this:
@VaadinUI public class MyUI extends UI { @Autowired I18N i18n; ... void init() { myLabel.setCaption(i18n.get("myLabel.caption")); } }
Please note, that you also need to configure a {@link org.springframework.context.MessageSource} inside your application contextthat contains all the messages to resolve.
@author Petter Holmström (petter@vaadin.com)