Java tutorial: Filtering Java entities in a data grid (part 7)

preview_player
Показать описание

Add a search filter and allow your users to find relevant data with ease. Learn how to filter the data in the grid of a Java web application.

Рекомендации по теме
Комментарии
Автор

Thanks a lot for these useful tutorials for beginners in Vaadin.

christopheresse
Автор

This is amazing. Thank you very much, this is an amazing technology

lumea-arboris
Автор

Hi! Your lessons are just super, everything is simple and clear. I used to write a project on the 7 version of Vaadin on Eclipse, now I have switched to IDEA so there is a lot of new things for me. Thank you very much.

КовтунСергей-ць
Автор

Great video as always

Keep up the good work Vaadin!

boristhedestroyerofancient
Автор

Thanks very, very much... But I have a problem : how can I render
grid.addColumn("localDate");

so :

grid.addColumn(new
.setHeader("LocalDateRender")
.setResizable(true)
.setSortable(true);

doesn't work !

localDate is a field of entity Contact.java
@Basic
private java.time.LocalDate localDate =
...
public java.time.LocalDate getLocalDate() {
return localDate;
}


grid.addColumn(new
.setHeader("LocalDateRender")
.setResizable(true)
.setSortable(true);

does also not work. How can I render this ?

volkerbechtel
Автор

In findAll(String filterText) method if filterText is null or empty, then it is better to call the method without parameters and not duplicate the code.
public List<Contact> findAll() {
return contactRepository.findAll();
}

public List<Contact> findAll(String filterText) {
if (filterText == null || filterText.isEmpty()) {
return findAll();
} else {
return
}
}

ayrat
join shbcf.ru