By overriding getPrintHTML() for a component the provided callback is not called. Is this by design or is it a bug? Here is the sample code.
Code:
@Override
public String getPrintHTML(PrintProperties printProperties, PrintHTMLCallback callback) {
SC.logWarn("getPrintHTML called");
if (callback == null) {
String print = super.getPrintHTML(printProperties, null);
return print + "my adjusting html code";
} else {
super.getPrintHTML(printProperties, new PrintHTMLCallback() {
@Override
public void setHTML(String html) {
SC.logWarn("does not enter here");
callback.setHTML(html + "my adjusting html code");
}
});
return null;
}
}
Comment