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.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
Value in Label with XHTML format
Hello,
i have a question, is it possible to set a Value of a Label with XHTML format???
Let's say, instead of creating a new Label like this:
Label temporaryLabel = null;
for( int i=0 ; i < 3 ; i++){
temporaryLabel = new Label ( "<br/>Test " + i , Label.XHTML);
}
can we do something like this?
Label temporaryLabel = new Label("");
for( int i=0 ; i < 3 ; i++){
temporaryLabel.setValue(" <br/> Test "+i, Label.XHTML);
}
thank u
Last updated on Jun, 21st 2012
You cannot reply to this thread.