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.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Удаление строки в таблице
Добрый день.
Использую связку SQLContainer, TableQuery, Table
При comit-е удаления записи из Table вызывается исключение java.lang.NullPointerException
А именно:
Caused by: java.lang.NullPointerException
at com.vaadin.data.util.sqlcontainer.query.generator.DefaultSQLGenerator.generateDeleteQuery(DefaultSQLGenerator.java:235)
at com.vaadin.data.util.sqlcontainer.query.TableQuery.removeRow(TableQuery.java:603)
at com.vaadin.data.util.sqlcontainer.SQLContainer.commit(SQLContainer.java:891)
Визуально удаление происходит, но реально из БД (Postgrees) ничего не удаляется.
В чем может быть причина?
Last updated on
Код в студию. Но на сколько я понял из мануала коммит надо делать в контейнере, именно он работает с БД, а таблица по сути виджет
Last updated on
You cannot reply to this thread.