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.

Compile classes in the widgetset

Tom Chanussot
7 years ago Jul 03, 2015 7:59am
Marius Reinwald
7 years ago Jul 03, 2015 9:02am

Try putting the connector in com.myproject.widgetset.client or in com.myproject.widgetset.client.extendedComponents and recompile the widgetset.

Also: The logs you put in your connector won't appear in the Server logs as the connector is running on the client side. You could see them if you're debugging the client side (google "Vaadin debug client side" to find documentation)
 

Tom Chanussot
7 years ago Jul 03, 2015 10:52am
Marius Reinwald
7 years ago Jul 03, 2015 11:09am

It seems like you also put the server side class called ResetButtonForTextField in the widgetset.client package. Everything in the client package doesn't have access to server side classes like com.vaadin.ui.Textfield....hence the exceptions during compilation.
ResetButtonForTextField should be in a "server-side" package (which are pretty much all packages expect the ones under widgetset) like just as an example: com.refComp or com.refComp.extensions or something like this while the connector and all RPCs should stay in the widgetset.client package.