Determine Widgetset Version


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?