Сразу оговорюсь, что с помощью строкового фильтра (TextFilter), который я рассмотрю, не всегда можно подсветить несколько строк. В зависимости от параметров конструктора фильтра будет проверка на равенство строк или проверка с помощью beginsWith(). В случая, когда этих средств недостаточно, придется фильтровать коллекцию объектов как-то еще до того, как заполняется ContainerDataSource грида. Есть еще фильтры с […]
Posts Tagged ‘vaadin’
Опыт подключения Яндекс.Метрики в vaadin
Входные данные такие. Есть приложения на vaadin, в него нужно вставить джаваскриптовый код и кусочек HTML разметки.
What is wrong about vaadin’s Breadcrumb?
I’m going to tell about my experience with add-on page. First of all, this page contains outdated code examples, but that’s only the start of the list.
How to get a value from lambda in Java?
If you reached this article, you most likely face one of these errors, and trying to get rid of one, get another: «variable used in lambda expression should be final or effectively final», «variable may be not initialized», «cannot assign a value to final variable». For my explanation I will use vaadin’s Window.
How to check if a row is present in vaadin’s grid after filtering
You probably have already tried out filtering feature in your vaadin project if you reached this article. Let’s understand how to get the list of items left in grid after filtering got applied.
How to get user’s ZoneId in Vaadin
Actually, the task can be split in two subtasks: — retrieving offset in the form which Vaadin can provide (integer number of milliseconds); — formatting it so that we could construct ZoneId.
How to workaround out of sync values retrieved in the selection listener of a vaadin’s grid
If you compose a sophisticated application with vaadin, you may face an interesting issue: values in the grid got updated (say, via HTTP) and you can see them in the corresponding rows and columns, but you can’t read the actual values when selection listener gets triggered. I will tell how to workaround this issue.
How to pass params into vaadin’s ui and control the view to be loaded
So, you want to enable in your vaadin app automated authentification based on request params. The right location for this functionality is your instance of com.vaadin.ui.UI class — here the decision is made which view to show. If the provided for authentification data is incorrect or incomplete, then we will show login view. If the […]