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
1
vote
2 answers

Vaadin23 tooltip component

I need to show users different tooltips on mouse over event. Do we have something like that in Vaadin component library? If no, how to show tooltips in Vaadin23?
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Vaadin 23: Get informed when Component is not hidden anymore / when parent component gets visible

My intention: I'd like to use a HTML-/JavaScript component in a Vaadin (23.1.4) application. This component is hidden initially (because its parent wrapper component is hidden). The component should get (JavaScript-)updates from…
S. Doe
  • 685
  • 1
  • 6
  • 25
1
vote
1 answer

Vadin23 properly reset Binder

I'd like to reset and recreate binder and form. For this purpose, I created the following method: public void reset() { getElement().removeAllChildren(); binder.getFields().forEach(binder::removeBinding); createForm(); } but it fails…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
0 answers

Vaadin 23 disable individual cell selection in Grid

Is it possible to disable individual cell selection in the Grid component. Right now, I added: grid.setSelectionMode(Grid.SelectionMode.SINGLE); but still able to select individual cell, like on the screenshot below: I need to allow only entire…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Vaadin 23 Grid with details - stretch instead scroll

Is it possible to set up a Vaadin Grid with details (like in the Item Details example https://vaadin.com/docs/latest/components/grid) to stretch instead of displaying a scroll? I need to let the Grid grow as much as it needs to. Please tell me how…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Vaadin 23 correctly remove and destroy component

Right now in order to remove the ComboBox element from the FormLayout I use the following method: formLayout.getElement().removeChild(locationComboBox.getElement()); I still have a validation binder associated with locationComboBox. I may remove…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Vaadin23 application won't load - script vaadin-bundle-xxx.cache.js 404 not found

I'm working on a Vaadin application running under tomcat in a WAR file. I'm trying to simply upgrade it from Vaadin 22 to Vaadin 23. It was loading reliably with Vaadin 22 but now it fails to load with Vaadin 23. The WAR file is named pcom.war and…
Archie
  • 4,959
  • 1
  • 30
  • 36
1
vote
1 answer

Vaadin 23 reduce buton width in the cell of FormLayout

I added a Button component to the FormLayout cell. Now, the button takes full cell width. I need to reduce the button width to be sized like an Icon or a little bit bigger. I tried to set button width with setWidth method, but the button width…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Vaadin 23 Home page with annonymous access

I have the following routes and views defined: private void createDrawer() { Tabs tabs = new Tabs(); tabs.add( createTab(VaadinIcon.HOME, "Home", HomeView.class), createTab(VaadinIcon.DASHBOARD,…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

vaadin 23 textfield set type

I'm using a vaadin TextField on mobile and want to change the input elements 'type' attribute to 'search' so that on mobile the search button shows up on the on screen keyboard. The input field is in the shadow dom of the vaadin-text-field…
Brett Sutton
  • 3,900
  • 2
  • 28
  • 53
1
vote
0 answers

Vaadin 23 application run from Application class vs Maven

When I run my Vaadin 23 application via Application Java class from IDEA everything works fine. But whe I run it via Maven with mvn spring-boot:run command it fails with the following exception: There was an exception while trying to navigate to ''…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Vaadin 23 select DatePicker content at onfocus in dialog

DatePicker behavior in view: In a Vaadin 23 application there is a view with two DatePickers and a button: When a user steps between the fields with TAB, then the DatePicker marks the whole content as selected (which is fine and the intended…
S. Doe
  • 685
  • 1
  • 6
  • 25
1
vote
1 answer

Do a hard location change when clicking on a link in Vaadin

When I click on a link in my vaadin application it gets intercepted by the router and only the components get changed, no page reload is done. But as descripted in the vaadin docs it should only happen when you add the "router-link" HTML-Attribute.…
Oliver Stahl
  • 617
  • 3
  • 19
1
vote
1 answer

IllegalStateException in conditional observer in Vaadin @RouteScoped component

We are using Vaadin 23 (23.0.9) with vaadin-cdi (14.0.0) and are having problems with conditional observers in @RouteScoped components (like it is described in the tutorial): @RouteScoped public class ScopedComponent extends Div { private void…
nluckas
  • 21
  • 3
1
vote
1 answer

Vaadin 23: addPropertyChangeListener for JavaScript changes

Intended: In a Vaadin 23 application I'd like to get informed when the value of an HTML attribute is changed. What I tried: I created this input formula: // Text input field Input input = new Input(); input.setId("myInputField"); …
user14972917