Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Determine Widgetset Version
Hello!
Is it possible to get the compiled widgetset version on client side from javascript?
Thanks in advance
The compiled widgetset version number is stored in the Java variable ApplicationConfiguration.VERSION. Because of the way GWT obfuscates the variable names to save bandwidth, I don't think there is any way to find that value without modifying the java code.
One possible workaround is to only detect the widgetset version when the debug console is active (?debug in the URL) by using javascript to find the line in the debug window that displays the version number.
The other option is to add some simple Java code to the widgetset so that it exports the version e.g. using JSNI.
vaadin-client.jar:8.11.3's ApplicationConfiguration doesn't seem to have the VERSION field, perhaps it was removed?