Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    showPrintPreview does not show all images

    I have a problem when doing a showPrintPreview() on a TreeGrid.
    I have defined a cell formatter for one of my rows which returns some HTML code to show images depending on certain flags:
    Code:
        private CellFormatter imageOnly = new CellFormatter() {
            @Override
            public String format(Object value, ListGridRecord record, int row, int vCol) {
                EditorTreeCell cell = (EditorTreeCell)getCell(record, 1);
                StringBuilder result = new StringBuilder();
                if (cell.isEditable()) result.append("<img src=\"images/editable.gif\">&nbsp;");
                if (cell.isMandatory()) result.append("<img src=\"images/mandatory.gif\">&nbsp;");
                if (cell.mustChange()) result.append("<img src=\"images/mustChange.gif\">&nbsp;");
                if (cell.mustVisit()) result.append("<img src=\"images/mustVisit.gif\">");
                return result.toString();
            }
        };
    This works perfectly well but when I do the showPrintPreview() none of the images appear (broken icon image is shown instead).
    What could be the reason for that?

    BTW, I use similar cell formatters for images which are loaded via RPC and they are shown just fine in my print view.

    Thomas

    I'm using GWT 2.0.3 and SmartGWT 2.2

    #2
    hello ?!?!?! Anybody who can help me???

    Comment

    Working...
    X