I'm using a CellTable and would like to programatically change the background color of certain cells in some situations. I tried it with an Custom Cell as described in the documentation and changed the background color with
sb.appendHtmlConstant ("<div style=\"background-color:blue;\">");
sb.append (safeValue);
sb.appendHtmlConstant ("</div>");
This basically works, but seems to be quite slow. Is there a better way to do this?