Example usage for com.vaadin.server VaadinPortletService VaadinPortletService

List of usage examples for com.vaadin.server VaadinPortletService VaadinPortletService

Introduction

In this page you can find the example usage for com.vaadin.server VaadinPortletService VaadinPortletService.

Prototype

public VaadinPortletService(VaadinPortlet portlet, DeploymentConfiguration deploymentConfiguration)
            throws ServiceException 

Source Link

Usage

From source file:com.arcusys.liferay.vaadinplugin.ControlPanelPortlet.java

License:Apache License

@Override
protected VaadinPortletService createPortletService(DeploymentConfiguration deploymentConfiguration)
        throws ServiceException {
    VaadinPortletService service = new VaadinPortletService(this, deploymentConfiguration) {
        private static final long serialVersionUID = 1L;

        @Override/*from  w  ww .j av a  2 s . c  o  m*/
        public final String getStaticFileLocation(VaadinRequest request) {
            // Use static resources (widgetsets and themes) in the portlet war:
            return request.getContextPath();
        }
    };

    service.init();
    return service;
}