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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
My custom Connector is not use why ?
Dear All I'm new in vaadin I try to create a custom component extend DateField, why my connector is not taken.
What is the common error or mistake.
See attachement.
Thanks for all your help
Regards
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
Thanks Marko for helping yes I give more details bellow
My server-side yes extend DateFieldpublic class SDateField extends DateField
Client side widget extend VPopupCalendar
public class SDateFieldWidget extends VPopupCalendar
My Connector extend PopupDateFieldConnector and is connected to my widget
public class SDateFieldConnector extends PopupDateFieldConnector
Maybe I don't well understand what you say "Compile the client-side classes in a widget set"
I have created a xml file SDateFieldWidgetset.gwt.xml and put at the same level of my widget classMaybe my problem come from the structure of the projet ? I put a print screen in attachment.
Thanks again.
Best regards
Marko Grönroos: 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
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.
Marko Grönroos: 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.
Thanks Marko
I currently looking at one of your post CSValidationTextField and looking for how your structured it.
I try to reorganize and check if it works
Regards
Thanks you so much Marko is working your project help me very much
Regards