setIcon(access, "icon", getIcon( entry.getPublic() ? "/img/public.png" : "/img/private.png"));
setIcon(access, "icon", getIcon( entry.getPublic() ? "/docroot/img/public.png" : "/docroot/img/private.png"));
    protected void doSearchEntries(String query, Object resultTable, String limitStr,                                    String direction, Object sortBox)                             throws Exception     {        removeAll(resultTable);              LOG.debug("Executing search query: '"+query+"' direction "+direction+" limitstr "+limitStr);        int[] limitOffset = handlePaging(limitStr, direction);                        String sortStr = (String) getProperty(getSelectedItem(sortBox), "sortfield");                LOG.debug(sortStr);                // put together arguments        Map args = new HashMap();        args.put("query", query);                configuration.setProperty(Constants.PROP_OFFSET, String.valueOf(limitOffset[1]));        configuration.setProperty(Constants.PROP_LIMIT, String.valueOf(limitOffset[0]));        configuration.setProperty(Constants.PROP_SORTFIELD, sortStr);                // run search        Output output = new Dispatcher(registry).run("search", OUTPUT_MODE, args);                // extract result ...         currentEntries = output.getEntries();        currentOffset = currentEntries.getOffset();        // ... and display it in table         if ( currentEntries.size() > 0 ) {            for (int i = 0; i < currentEntries.size(); i++) {                Entry entry = currentEntries.getEntry(i);                              Object row = create("row");                add(resultTable, row);                                Object emptyRow = create("row");                add(resultTable, emptyRow);                                Object access = create("cell");                setChoice(access, "alignment", "center");                setIcon(access, "icon", getIcon( entry.getPublic() ? "/img/public.png" : "/img/private.png"));                add(row, access);                                Object cell = create("cell");                putProperty(cell, "id", new Integer(i));                setString(cell, "text", entry.getTitle());                setString(cell, "tooltip", entry.getUrl().toString());                add(row, cell);                            add(row, newtext("cell", StringUtil.join(entry.getTags(), Entry.TAG_SEPARATOR)));                add(row, newtext("cell", entry.getNote()));            }            setVisible(SEARCH_RESULT, true);            setVisible(EMPTYRESULT_LABEL, false);                        text(PAGER_LABEL, string(ENTRIES) +" "+ currentOffset +" "+ string(TO)                             +" "+ (currentOffset+currentEntries.size()) +" "+ string(OF)                             +" "+ currentEntries.getTotalSize());        } else {            setVisible(SEARCH_RESULT, false);            setVisible(EMPTYRESULT_LABEL, true);            text(PAGER_LABEL, "");        }                determinePagerEnabled();    }