Coder Social home page Coder Social logo

tutorial's Introduction

Vaadin 24.4 tutorial application

This repository contains the starter project and example solutions for the Vaadin 24.4 tutorial application.

The Vaadin 8 tutorial application can be found in the old master branch.

tutorial's People

Contributors

alejandro-du avatar alvarezguille avatar johannesh2 avatar mstahv avatar peholmst avatar zhesun88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tutorial's Issues

Exception Unable to find design file CustomerFormDesign.html in my.vaadin.app

Fixing typo mistake and renaming java/my/vaaadin/app to java/my/vaadin/app introduced exception when running app:

com.vaadin.ui.declarative.DesignException: Unable to find design file CustomerFormDesign.html in my.vaadin.app

It happens because resources/my/vaaadin/app wasn't renamed to resources/my/vaadin/app.

And MyUI.java need to fix typo in Widgetset refernce too
-@WidgetSet("my.vaaadin.app.MyAppWidgetset")
+@WidgetSet("my.vaadin.app.MyAppWidgetset")

Vaadin URL mapping issues: sub-path URL mapping and automatic URL mapping not working

Hi there,

Not sure if I can post this here. Please feel free to close/delete.

Facing these issue w.r.t Vaadin UI and URL mapping.

Problem1:

I am trying to use Vaadin for basic CRUD operations for my Entities. To start with, I would like to expose a UI class to /subpath/xyz url. But the sub-path url mapping is somehow not working. (Please note that when I keep or remove @spring(path="myui") it still maps to localhost:8080/myui/ and not localhost:8080/subpath/myui/

What am I missing?

I have been following Vaadin's documentation but no luck so far.
https://vaadin.com/docs/-/part/framework/application/application-environment.html#application.environment.servlet-mapping

Problem2:
Also, Vaadin is not generating url mappings automatically from the class name. E.g. MyUI classname should be mapped to localhost:8080/my-ui/ if I do not give path attribute in @springui( as per Vaadin's documents).

import com.vaadin.annotations.Theme;
import com.vaadin.annotations.Title;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.spring.annotation.SpringUI;
import com.vaadin.spring.server.SpringVaadinServlet;
import com.vaadin.ui.*;

import javax.servlet.annotation.WebServlet;

@theme("valo")
@title("My UI")
@springui(path="myui")
public class MyUI extends UI {
@OverRide
protected void init(VaadinRequest request) {
// Create the content root layout for the UI
VerticalLayout content = new VerticalLayout();
setContent(content);

	// Display the greeting
	content.addComponent(new Label("Hello World!"));

	// Have a clickable button
	content.addComponent(new Button("Click Me!",
		click -> Notification.show("Clicked!")));
}
@WebServlet(urlPatterns = {"/admin/*", "/VAADIN/*"}, name = "MyUIServlet", asyncSupported = true)
@VaadinServletConfiguration(ui = MyUI.class, productionMode = false)
public static class MyUIServlet extends SpringVaadinServlet {
}

}

Vaadin 7 or 8 ?

Hello Alejandro,

https://www.useloom.com/share/00d0efd5f9a048d5a86bc4fb1629a432

I have spent the last week viewing your wonderful Vaadin 7 tutorial:
https://vaadin.com/docs7/-/part7/framework/tutorial.html

Is the information here on Github for Vaadin 7 or Vaadin 8?

As I was not able to get the beginning tutorial to work in Vaadin 7, so I am hoping to try again today, following the instructions that are given here on Github -- by downloading the source and hope I can successfully complete the beginners tutorial.

Thank you.

https://vaadin.com/forum#!/thread/15496153

Jon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.