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.

Client side app (compiling my own widget)

jose luis romero
6 years ago Feb 01, 2016 6:49pm

I have been trying to make an example from the Vaadin 7 UI Design by Example, but I can't make it work ( I can't see the widget in the page), the class is compiled, the widget is generated as the .js files.
When I try to autocomplete the path of src= with the IDE (Netbeans) after VAADIN/, it is showing my themes/ as the only possible path, is it that right?
This is my Web Pages/index.html

<!doctype html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <title>Client Side Application Test</title>
        <script type="text/javascript" src= "VAADIN/widgetsets/org.clientside.ClientsideWidgetset/org.clientside.ClientsideWidgetset.nocache.js" >
        </script>
    </head>
    <body>
        Hola!
    </body>
</html>
Johannes Häyry
6 years ago Feb 02, 2016 8:01am
jose luis romero
6 years ago Feb 02, 2016 10:20am
Johannes Häyry
6 years ago Feb 02, 2016 10:07pm
jose luis romero
6 years ago Feb 03, 2016 10:29am
Alejandro Duarte
6 years ago Feb 04, 2016 1:39pm

Hi,

Some things have changed since the book was published. You need to copy the widgetset directory from the target directory into your project source as shown in the attached screenshot.

Also, make sure that your HTML file points to the correct .nocache.js file.

jose luis romero
6 years ago Feb 05, 2016 12:55pm