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

Vaadin 23 PageNotFound route returns 200ok instead of 404

This is my custom PageNotFound route: @ParentLayout(MainLayout.class) @AnonymousAllowed public class PageNotFound extends RouteNotFoundError { @Override public int setErrorParameter(BeforeEnterEvent event, ErrorParameter
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

How to pass parameters to a javascript file called in Vaadin?

I am successully calling a javascript within Vaadin. However how could we pass some parameters to this javascript file. E.g: below I pass the variable num to the JS file but it does not work. JAVA: Div myDiv = new Div(); int num =…
soulemane moumie
  • 1,005
  • 1
  • 14
  • 26
0
votes
1 answer

Multiple Authentications in Spring Boot (parallel use of Vaadin and a REST API)

I want to run a Vaadin 23 frontend but also have a REST API in my application. I want to use Token-Based (JWT) authentication for the REST API and Standard form-based for the frontend. I have tested a lot of different configurations from examples in…
Chris
  • 834
  • 1
  • 10
  • 23
0
votes
1 answer

Vaadin23: Expected router outlet to be a valid DOM Node (but got null) and HomeView rendered several times in production mode

when I run our vaadin 23 app in production mode, I get following error in the browser console, while the corresponding site is rendered twice: Uncaught (in promise) TypeError: [Vaadin.Router] Expected router outlet to be a valid DOM Node (but got…
Sura Chaitanya
  • 243
  • 1
  • 4
  • 11
0
votes
0 answers

Binder validation is not working properly in vaadin Hilla (23.3.0)

When I tried to implement validation code in Hilla(1.3.0), the validation message is not showing near the text-field, but it is showing in the notification area. I expecting to get the error message near the…
Archana
  • 1
  • 2
0
votes
1 answer

Conditional context menu with Vaadin grid

In my Vaadin application I have a grid displaying book information. I do need to add a context menu to the grid but it shall be conditional. For anonymous user (i.e. hasn't logged in yet) there shall be no context menu. For logged in user, menu…
Gary Greenberg
  • 468
  • 1
  • 9
  • 22
0
votes
1 answer

Vaadin 23: How to sync field values within ShortcutEventListener (Ctrl + S)?

Intention: In an existing Vaadin 23 form I'd like to add a shortcut Ctrl+S to trigger a save action. Code: This is a reduced (but running) code: @Route("sandbox") public class SandboxView extends VerticalLayout { public SandboxView() { …
S. Doe
  • 685
  • 1
  • 6
  • 25
0
votes
0 answers

Problems with grid column rendering in Vaadin

I am using a Grid to display books information. Those books a historical novels and they are sorted by the year in which action is occurred. My first column in the grid is this year. Book object has this year as integer where positive numbers are AD…
Gary Greenberg
  • 1,084
  • 8
  • 14
0
votes
0 answers

Vaadin throws an exception while refreshing the page

I am running tests for my Vaadin application and getting the following exception while clicking on the reload page button on the Chrome. 2022-12-08 19:50:52.543 ERROR 26592 --- [nio-8080-exec-1] c.v.flow.router.InternalServerError : There was…
Gary Greenberg
  • 1,084
  • 8
  • 14
0
votes
1 answer

How to change row bg-color in Vaadin when condition is met?

I am using Vaadin v23 and I am trying to change bg-color of a row when certain condition is met, like below: grid.setClassNameGenerator(row -> row.getRemoved() ? LumoUtility.Background.CONTRAST : ""); Why doesn't it work? I tried to do it with…
Burak
  • 83
  • 1
  • 7
0
votes
0 answers

addEventListener on AppNavItem

I am using latest version of Vaadin. Intended: want to catch an event if AppNavItem (with child elements) is clicked (expanded, toggled). Code: @JsModule("@vaadin-component-factory/vcf-nav") @Tag("vcf-nav-item") public class AppNavItem…
0
votes
1 answer

Formatting issues with the virtual list in Vaadin 23

I have created a VirtualList to display books information. My renderer presents each book information as an accordion, where first panel is generic book information (author, title, etc.) and it might have three more panels: annotation, commentary,…
Gary Greenberg
  • 1,084
  • 8
  • 14
0
votes
0 answers

How to make an anchor working in a vaadin page?

I have a vaadin app which renders raw html into a vaadin layout. The html includes a anchor and a href that points to the anchor. The problem is that my page includes a path and a query: https://onepub.dev/Blog?id=zhhnoflygz This above link is to a…
Brett Sutton
  • 3,900
  • 2
  • 28
  • 53
0
votes
0 answers

Vaadin 23 UI recreation after idle time

After some idle time on my iPhone when I try to access the previously opened Vaadin page - I see the white screen. I need to force the page refresh in order to render its content. Also, I see "a new UI has been initialized" event in UIInitListener.…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
2 answers

Vaadin 23: Howto open dialog in value change listener and execute button click?

Context: In a Vaadin 23.2.8 form there is a TextField and a Button. What I want to do / expected behavior: In the ValueChangeListener of the TextField there should open a dialog. The dialog should be visible until the user closes it. The button…
S. Doe
  • 685
  • 1
  • 6
  • 25