Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

data not binding... Building a web UI for MySQL databases (in plain Java)

Literate Aspects
4 years ago Apr 27, 2017 7:43pm
Literate Aspects
4 years ago Apr 27, 2017 8:00pm
Literate Aspects
4 years ago Apr 27, 2017 8:12pm
Literate Aspects
4 years ago Apr 27, 2017 8:13pm
Alejandro Duarte
4 years ago Apr 28, 2017 12:55pm
Literate Aspects
4 years ago Apr 28, 2017 5:27pm

Hello Alejandro,

I think I am most impressed more by your contributions to Vaadin.  Yesterday, I came across your blog http://www.alejandrodu.com/
And I notiece the initial content, whereas it seems very simple:
1.  JDBC Create data connectivity
2.  Create Model
3.  Create Service Class with findall

Then simply a Vaadin UI with the following:

PersonService service = new PersonService();
Grid<Person> grid = new Grid<>(Person.class);

Is it as simple as the above? 

Literate Aspects
4 years ago Apr 28, 2017 8:26pm

Alejandro Duarte: I would start by double-checking that InventoryService::findAll returns data.

Hello Alejandro,

The error was in the constructor in the Model, was able to run it as a jar using the local MySQL database.

Alejandro Duarte
4 years ago May 02, 2017 8:55am
Literate Aspects
4 years ago May 02, 2017 11:20pm
Alejandro Duarte
4 years ago May 03, 2017 7:56am
Literate Aspects
4 years ago May 03, 2017 5:43pm
Alejandro Duarte
4 years ago May 03, 2017 8:29pm
Literate Aspects
4 years ago May 03, 2017 8:40pm
Alejandro Duarte
4 years ago May 03, 2017 8:49pm
Literate Aspects
4 years ago May 04, 2017 12:29am
Alejandro Duarte
4 years ago May 04, 2017 8:35am
Literate Aspects
4 years ago May 04, 2017 11:28am
Literate Aspects
4 years ago May 04, 2017 11:47am
Alejandro Duarte
4 years ago May 04, 2017 11:56am
Literate Aspects
4 years ago May 04, 2017 12:13pm
Alejandro Duarte
4 years ago May 04, 2017 12:26pm
Literate Aspects
4 years ago May 04, 2017 6:41pm