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.

My custom Connector is not use why ?

Lino Costa
6 years ago May 27, 2015 9:59am
Marko Grönroos
6 years ago May 27, 2015 11:43am

A bit more details about how you have implemented the component would be useful.

Usually when extending an existing component, you need at least:

  • A server-side class extending com.vaadin.ui.DateField
  • A client-side widget that possibly extends com.vaadin.client.ui.VDateField
  • A client-side connector that possibly extends com.vaadin.client.ui.datefield.DateFieldConnector, and refers to the server-side class with the @Connect annotation
  • Compile the client-side classes in a widget set
Lino Costa
6 years ago May 27, 2015 1:20pm
Marko Grönroos
6 years ago May 27, 2015 1:39pm

The project structure indeed seems to have a problem. The client-side classes must be in a "client" package under the package of the .gwt.xml widget set descriptor. See the project structure diagram in the book chapter.

Lino Costa
6 years ago May 27, 2015 1:43pm
Lino Costa
6 years ago May 27, 2015 1:55pm