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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
How to update Value row to database table?
My code
TableQuery q1 = new TableQuery("acmbooks", connectionPool); (table acmbooks)
htContainer = new SQLContainer(q1);
htContainer.addContainerFilter(new Equal("id", 152365)); (id key )
I can get one row,
but I don't kown How to update property of Value row ??
((Item)htContainer.firstItemId()).getItemProperty("Property").setValue(“ I want to changed text ”); (Write like this didn't respond)
(I do not see example for update database for use SQLContainer in vaadin book or website!)
Another method
String str1 = "UPDATE acmbooks SET content =" +“ I want to changed text ” + ”WHERE id = 152365“;
FreeformQuery q2 = new FreeformQuery(str1, connectionPool, "ID");
q2.commit();
(This too not right ! ) What can I do? Thanks!
I get it!
It is directly in the UI editor inside to submit !!
Vaadin Is good for Java developers framework !But memory use is slightly bigger than java jsf2!(Don't know if my code)