CustomField and FormLayout

Hi guys!

I have a CustomerField component. I put it into the FormLayout object. I want to see caption from the left side, but there is nothing. Any hints?

MyCustomField field = new MyCustomField(); // MyCustomField inherites from CustomField

FormLayout layout = new FormLayout();

As the result

Thanks in advance!

To me it looks like you are using it just right. Have you overridden the setCaption mehtod? If not, and the issue exists with latest Vaadin version, maybe you could attach the custom field implementation to a bug report in


Sorry! My fail. CustomField with Caption works as expected.