[http-nio-8080-exec-3]
[code_jsp:172]
{code=“404”, msg=“ProxyServlet: /o/vaadin-8.1.6/VAADIN/themes/mytheme/styles.css”, uri=/o/vaadin-8.1.6/VAADIN/themes/mytheme/styles.css}
help!
thanks
[http-nio-8080-exec-3]
[code_jsp:172]
{code=“404”, msg=“ProxyServlet: /o/vaadin-8.1.6/VAADIN/themes/mytheme/styles.css”, uri=/o/vaadin-8.1.6/VAADIN/themes/mytheme/styles.css}
help!
thanks
import com.vaadin.osgi.resources.OsgiVaadinTheme;
import com.vaadin.ui.themes.ValoTheme;
import org.osgi.service.component.annotations.Component;
@Component(immediate = true, service = OsgiVaadinTheme.class)
public class AppTheme extends ValoTheme implements OsgiVaadinTheme {
@Override
public String getName() {
return “mytheme”;
}
}
@Theme(“mytheme”)
@VaadinLiferayPortletConfiguration(name = “cn.com.dareway.helloporlet”, displayName = “Vaadin portlet”)
@Component(service = UI.class, property = { “com.liferay.portlet.display-category=dareway”,
“javax.portlet.security-role-ref=power-user,user” }, scope = ServiceScope.PROTOTYPE)
public class HelloPortlet extends UI {
@Override
protected void init(VaadinRequest request) {
final VerticalLayout layout = new VerticalLayout();
final TextField name = new TextField();
name.setCaption("your name:");
Button button = new Button("click");
button.addClickListener(e -> {
layout.addComponent(new Label("thank you " + name.getValue() + ", Vaadin portlet in liferay portal!"));
});
layout.addComponents(name, button);
setContent(layout);
}
}