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.
CSValidatedTextField in a VerDashLayout does not show caption
Might be a bug here but if your using these two addons together and you create a VerDashLayout, add a CSValidatedTextField in the layout, the caption seems to be missing from the
div
, can someone please verify if this is a bug or i am not using them properly.
//build layout constructs
quickCourseLayout.setWidth("1197px");
quickCourseLayout.setHeight("383px");
quickCourseLayout.setStyleName("quickstudent");
quickCourseLayout.setMargin(true);
quickCourseLayout.setSpacing(true);
//heading
Label headerCourseLabel = new Label();
headerCourseLabel.setImmediate(true);
headerCourseLabel.setStyleName("createtoplabel");
headerCourseLabel.setHeight("-1");
headerCourseLabel.setWidth("-1");
headerCourseLabel.setValue("Step 1.1 - Create Course details");
quickCourseLayout.addComponent(headerCourseLabel);
//course name
courseNameField = new CSValidatedTextField("CourseName:");
courseNameField.setCaption("Course Name");
courseNameField.setRequired(true);
courseNameField.setRequiredError("Course name cannot be empty");
courseNameField.setStyleName("coursevalidators");
courseNameField.setImmediate(true);
courseNameField.setWidth("200px");
courseNameField.setMaxLength(100);
quickCourseLayout.addComponent(courseNameField);
Hi,
The caption of TextField, which the CSValidatedTextField extends, is managed by the containing layout. It says in the DashLayout homepage: "DashLayout does not provide caption support (at least not yet)."
Marko Grönroos: Hi,
The caption of TextField, which the CSValidatedTextField extends, is managed by the containing layout. It says in the DashLayout homepage: "DashLayout does not provide caption support (at least not yet)."
Just noticed that after posting this question, i guess i will have to settle for CSSLayout then. Thanks