public class TreeRowRenderer extends XULRenderer {
public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
ResponseWriter responseWriter = facesContext.getResponseWriter();
responseWriter.startElement("treerow",component);
TreeRowComponent treeRowComponent = (TreeRowComponent) component;
TreeItemComponent treeItemComponent = (TreeItemComponent) treeRowComponent.getParent();
StringBuffer stringBuffer = new StringBuffer(treeItemComponent.getNodeId());
stringBuffer.append(":tr");
treeRowComponent.setNodeId(stringBuffer.toString());
responseWriter.writeAttribute("id",treeRowComponent.getNodeId(), "id");
if(!isParentSmoothlyUpdateable(component)){
if (component instanceof SmoothlyUpdateable) {
SmoothlyUpdateable smoothlyUpdateable = (SmoothlyUpdateable) component;
if (smoothlyUpdateable.needsUpdate()) {
Bridge bridge = XulUtils.getBridge();