sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 52702 - http://anonsvn.icesoft.org/repo / icefaces4 / trunk / icefaces / ace / component / src / org / icefaces / ace / component / tree / TreeRenderer.java
Unified Diff View - TreeRenderer.java
/icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/tree/TreeRenderer.java @ revision 52701
/icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/tree/TreeRenderer.java @ revision 52702
@@ -337,9 +337,14 @@         writer.endElement(HTML.IMG_ELEM);   writer.startElement(HTML.SPAN_ELEM, null); -  writer.writeAttribute(HTML.CLASS_ATTR, iconClass, null); -  if (leaf) -   writer.writeAttribute(HTML.STYLE_ATTR, "background-position:-160px 0;", null); +  UIComponent iconFacet = tree.getFacet("icon"); +        if (iconFacet != null && iconFacet.isRendered()) { +            iconFacet.encodeAll(FacesContext.getCurrentInstance()); +  } else { +   writer.writeAttribute(HTML.CLASS_ATTR, iconClass, null); +   if (leaf) +    writer.writeAttribute(HTML.STYLE_ATTR, "background-position:-160px 0;", null); +  }   writer.endElement(HTML.SPAN_ELEM);         writer.endElement(HTML.DIV_ELEM);


feed icon

sventon 2.5.1