Hi everyone!
I just start Vaadin adventure, still fight with a problem:
GWT plugin is configured to detect modules, but none were found.
No widgetsets found - generating AppWidgetset if necessary.
Updating widgetset AppWidgetset
I was looking for answers in different places on the web, which are not connected with each other, opinions are mixed.
Some people talk about .gwt.xml file configuration, but i haven’t him during create Vaadin project(it is possible that I’m doing something wrong), and some others just need to configure pom.xml.
Finally, I don’t know what should I correct/modify.
Using NetBeans 8.2.
Can I ask the Vaadin community for help :D?
package com.mycompany.vaadin_demo;
import javax.servlet.annotation.WebServlet;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.TextField;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
/**
* This UI is the application entry point. A UI may either represent a browser window
* (or tab) or some part of an HTML page where a Vaadin application is embedded.
* <p>
* The UI is initialized using {@link #init(VaadinRequest)}. This method is intended to be
* overridden to add component to the user interface and initialize non-component functionality.
*/
@Theme("mytheme")
public class MyUI extends UI {
@Override
protected void init(VaadinRequest vaadinRequest) {
final VerticalLayout layout = new VerticalLayout();
final TextField name = new TextField();
name.setCaption("Type your name here:");
Button button = new Button("Click Me");
button.addClickListener(e -> {
layout.addComponent(new Label("Thanks " + name.getValue()
+ ", it works!"));
});
layout.addComponents(name, button);
setContent(layout);
}
@WebServlet(urlPatterns = "/*", name = "MyUIServlet", asyncSupported = true)
@VaadinServletConfiguration(ui = MyUI.class, productionMode = false)
public static class MyUIServlet extends VaadinServlet {
}
}
17103177.xml (5.13 KB)