View Full Version : [FIXED] TextButton won't display HTML text
DavidHoffer
12 Feb 2012, 7:14 AM
I'm trying to get a TextButton to display HTML text but it keeps rendering that in plain text, how do I fix this?
robferguson
12 Feb 2012, 7:38 PM
Hi,
Are you using setText() or setHTML() ?
Cheers
Rob
DavidHoffer
12 Feb 2012, 7:40 PM
Rob,
I'm calling setHTML() however it does the same thing as setText().
-Dave
robferguson
12 Feb 2012, 9:42 PM
Hi,
Interesting, the implementations are different:
@Override
public void setText(String text) {
cell.setText(text);
redraw();
// redrawTask.delay(1);
}
@Override
public void setHTML(SafeHtml html) {
setHTML(html.asString());
}
@Override
public void setHTML(String html) {
cell.setHTML(html);
redrawTask.delay(1);
}
Cheers
Rob
Colin Alworth
15 Feb 2012, 10:39 AM
The implementations are different, but the apparent effect is the same - thanks for reporting this.
Powered by vBulletin® Version 4.2.3 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.