Questions tagged [vaadin23]

Use this tag for version-specific questions about Vaadin 23 - the open-source platform for web application development. When using this tag, also include the more generic [vaadin] and [vaadin-flow] tags where applicable. Vaadin 23 superseded Vaadin 14 in March 2022.

191 questions
0
votes
0 answers

Load MP4 via StreamResource (Vaadin 23)

I use StreamResource to upload several media types with Vaadin 23 (Vaadin doc https://vaadin.com/docs/latest/advanced/dynamic-content) Uploading images (jpeg) and documents (pdf) works well with StreamResource but uploading videos (mp4) doesn't seem…
0
votes
1 answer

Vaadin 23 WEBSOCKET_XHR + ui.setPollInterval as a backup channel

Because of a frequent losing of websoket connection between client and server, is this a good idea to use Vaadin 23 WEBSOCKET_XHR + ui.setPollInterval() as a backup channel? For example: var ui =…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

How to display a property of selection object while hovering cursor over combo box item in Vaadin

In my Vaadin (v.23.2.6) application I am creating a bean of class Book. This bean has set of tags. Tags are retrieved from the database and contain two properties - tagName and tagDescription. In my UI form I specified MultiSelectComboBox for…
Gary Greenberg
  • 1,084
  • 8
  • 14
0
votes
1 answer

Vaadin nested async calls and UI object

Is it safe to do nested asynchronous calls (websocket calls) with Vaadin like: var ui1 = UI.getCurrent(); listenableFuture1.addCallback(page1 -> { ui1.access(() -> { //update ui here, then: var ui2 =…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Vaadin23 client side async XHR requests to load the placeholder content

I like responsive application behavior which I may achieve with @PUSH. The downside of this approach - the issue with web-sockets which stop working for the unknown reason on my iPhone after some unpredictable period of time. The only solution…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
0 answers

Vaadin 23 @Push(transport = Transport.WEBSOCKET_XHR) ping socket

Please correct me if I'm wrong that Transport.WEBSOCKET_XHR means that browser asks server via XmlHttpRequest (AJAX) and server responds to the browser via websocket. So, with Transport.WEBSOCKET_XHR, is there any out-of-the-box functionality…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
0 answers

Vaadin 23 websockets - Fallback chunk is not available, skipping fallback dependencies load

During debug of Vaadin 23 application with @Push(transport = Transport.WEBSOCKET_XHR) enabled I see many messages like the following: 2022-11-15 21:53:10.826 DEBUG 23532 --- [ task-8] c.v.flow.component.internal.UIInternals : Fallback chunk…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
0 answers

Vaadin 23 java.io.IOException: Can not read scheme 'war' for resource jar:war:file:../ui-0.0.1.jar*/BOOT-INF/lib

In the debug I frequently see the following exception: 2022-11-15 03:05:22.692 DEBUG 1791602 --- [http-nio-8080-exec-6] com.vaadin.flow.server.StaticFileServer : failed to read jar file contents java.io.IOException: Can not read scheme 'war' for…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
2 answers

Vaadin binder throw an exception on empty field

In my Vaadin (v.23.2.6) application I have a form tied up to Filter class which has 5 attributes. All of them are optional, i.e. user can leave the blank. public FilterPanel(ApiBookUtils api) { this.api = api; this.authorField = new…
Gary Greenberg
  • 1,084
  • 8
  • 14
0
votes
0 answers

Vaadin 23 ComboBox with Lit renderer popup window

I implemented my custom renderer for ComboBox: StringBuilder tpl = new StringBuilder(); tpl.append("
"); tpl.append("
"); …
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
0 answers

Vaadin 23 WebSockets recovery logic

I'm still fighting with a proper configuration of WebSockets in Vaadin 23 application and NGINX. For NGINX I configured the following: proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Vaadin 23 proper usage of nested layouts

Typically, when I need to present some information, I use VerticalLayout (VL) as a main container and many of nested HorizonalLayouts (HL). I may be wrong, but I feel that this is not a very effective way to organize the information. I suppose I may…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Binding combo boxes in Vaadin Dialog and some extra fields

In my Vaadin application I have a dialog that creates a filter to search for books. As a result I am creating a Filter bean that looks like this: public class Filter implements Serializable { private Author author; private String country; private…
Gary Greenberg
  • 468
  • 1
  • 9
  • 22
0
votes
0 answers

Vaadin 23 StatelessAuthentication JWT and JSESSIONID

I have configured my Vaadin23 application with stateless authentication model and Keycloak SSO. I use JWT token with Cookie in order to restore the user session on application redeploy. At first glance everything is working fine. But, from time to…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
0 answers

Vaadin 23 Ui.navigate from another thread

When I try to navigate a user asynchronously from the server-side via @Push like: ListenableFuture listenableFuture = // some Async method invocation var ui = UI.getCurrent(); listenableFuture.addCallback(jobApplicationMatrix…
alexanoid
  • 24,051
  • 54
  • 210
  • 410