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.

ComboBox Error Indicator behind components

Andreas Buechler
9 years ago May 01, 2012 5:47pm
Johannes Häyry
9 years ago May 10, 2012 10:39am

You are using AbsoluteLayout right? Seems to be that the z-order of the components is affected of in which order you add the components. So e.g.

AbsoluteLayout layout = new AbsoluteLayout();

DateField a = new DateField();
		
b = new ComboBox();
b.setComponentError(new UserError("Error A"));
		
c = new ComboBox();
c.setComponentError(new UserError("Error B"));
		
layout.addComponent(b, "left:10px;top:200px;");
layout.addComponent(a, "left:10px;top:170px;");
layout.addComponent(c, "left:10px;top:230px;");

Causes the "b" ComboBox error indicator to be behind DateField "a". Changing

layout.addComponent(a, "left:10px;top:170px;");
layout.addComponent(b, "left:10px;top:200px;");
layout.addComponent(c, "left:10px;top:230px;");

And they are on top of each other and not behind.

Andreas Buechler
9 years ago May 12, 2012 2:29pm
Johannes Häyry
9 years ago May 14, 2012 7:51am
Andreas Buechler
9 years ago May 15, 2012 7:02am
Johannes Häyry
9 years ago May 15, 2012 7:44am
Andreas Buechler
9 years ago May 26, 2012 2:51pm
Henri Sara
9 years ago May 30, 2012 10:30am