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.
No description showed in DragAndDropWrapper
Hi,
I have a Selector with description in a VerticalLayout. It will show description on web page correctly.
private Component buildMainLayout()
{
VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setMargin(false);
// top-level component properties
setHeight("100%");
setWidth("600px");
platformSelector = new Select("Platform:");
platformSelector.setImmediate(true);
platformSelector.setNewItemsAllowed(false);
platformSelector.setNullSelectionAllowed(false);
platformSelector.setScrollToSelectedItem(true);
platformSelector.setDescription("Select platform to see next setup data.");
...
...
But when I put mainLayout into DragAndDropWrapper, description isn't showed anymore.
Same issue if I just put a Button into DragAndDropWrapper.
Does anyone have same problem?
How can you solve it?
Any suggestions are appreciated.
Descriptions are displayed by the layout and not by the component.
By putting the component in a wrapper, the layout will try to display the wrapper's description.
Try to use wrapper.setDescription(component.getDescription());
Thank you!
Like you said, I should use wrapper.setDescription(component.getDescription());
But another question, my DragAndDropWrapper has a panel, this panel has two buttons.
Each button has its own description.
How can let button show its own description?
Thank you again.
It should be handled by the layout inside the panel I guess.
Mathias Clerc: It should be handled by the layout inside the panel I guess.
Hi,
Still can't work.
I attached my wrapper source file.
My labels can't show their descritions.
Would you kindly help me?
Thank you.