Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.servlet.annotation.WebServlet;
- import com.vaadin.annotations.Theme;
- import com.vaadin.annotations.Title;
- import com.vaadin.annotations.VaadinServletConfiguration;
- //import com.vaadin.ejercicios.domain.model.Contact;
- //import com.vaadin.ejercicios.services.ContactService;
- import com.vaadin.server.VaadinRequest;
- import com.vaadin.server.VaadinServlet;
- import com.vaadin.ui.Label;
- import com.vaadin.ui.UI;
- /* User Interface written in Java.
- *
- * Define the user interface shown on the Vaadin generated web page by extending the UI class.
- * By default, a new UI instance is automatically created when the page is loaded. To reuse
- * the same instance, add @PreserveOnRefresh.
- */
- @Title("Addressbook")
- @Theme("valo")
- public class JereUI extends UI {
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- /*
- * The "Main method".
- *
- * This is the entry point method executed to initialize and configure the
- * visible user interface. Executed on every browser reload because a new
- * instance is created for each web page loaded.
- */
- @Override
- protected void init(VaadinRequest request) {
- Label hola = new Label("Hola maxi bueno , hola maxi scout");
- setContent(hola);
- }
- @WebServlet(urlPatterns = "/*")
- @VaadinServletConfiguration(ui = JereUI.class, productionMode = false)
- public static class MyUIServlet extends VaadinServlet {
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement