1 5 package org.exoplatform.faces.core.renderer.html; 6 7 import java.io.IOException ; 8 import java.util.ResourceBundle ; 9 import javax.faces.component.UIComponent; 10 import javax.faces.context.FacesContext; 11 import org.exoplatform.faces.core.component.UIExoComponent ; 12 import org.exoplatform.text.template.xhtml.Element; 13 14 public class TemplateRenderer extends HtmlBasicRenderer { 15 16 public void encodeChildren( FacesContext context, UIComponent component ) throws IOException { 17 UIExoComponent exo = (UIExoComponent) component ; 18 Element template = exo.getTemplate() ; 19 ResourceBundle res = getApplicationResourceBundle(context.getExternalContext()) ; 20 template.render(exo, res, context.getResponseWriter()) ; 21 } 22 } | Popular Tags |