Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

When can I call functions on a new AbstractjavaScriptComponent?

Joshua Engel
9 years ago Jan 07, 2014 9:26pm
Joshua Engel
9 years ago Jan 07, 2014 9:27pm
Teppo Kurki
9 years ago Jan 08, 2014 6:33am

Hi,

can't really say right away what's the reason for the exception, but in general you should be able to call functions from the constructor. In order to debug this, please enable "pretty" or "detailed" compile mode for the widgetset. This should produce a much more meaningful exception message. To do this for the vaadin plugin, go to properties -> vaadin in your project and select the "javascript style" from the drop-down.

As for the version numbers, the client-side compiler simply adds its version number to the compiled widgetset and that is compared to the one that the server-side (vaadin-server jar) reports. I don't know why the check would fail with no reason. Please double-check that you don't have any other vaadin versions anywhere in your classpath.

Joshua Engel
9 years ago Jan 08, 2014 4:57pm
konstantin krasheninnikov
9 years ago Feb 09, 2014 9:31pm