1 13 package com.tonbeller.wcf.component; 14 15 import org.w3c.dom.Document ; 16 import org.w3c.dom.Element ; 17 18 import com.tonbeller.wcf.controller.RequestContext; 19 import com.tonbeller.wcf.utils.XmlUtils; 20 21 24 public abstract class NestableComponentSupport 25 extends ComponentSupport 26 implements NestableComponent { 27 28 public NestableComponentSupport(String id, Component parent) { 29 super(id, parent); 30 } 31 32 37 public Document render(RequestContext context) throws Exception { 38 Document doc = XmlUtils.createDocument(); 39 Element elem = render(context, doc); 40 doc.appendChild(elem); 41 return doc; 42 } 43 44 } 45 | Popular Tags |