KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > faces > core > renderer > html > TemplateRenderer


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.faces.core.renderer.html;
6
7 import java.io.IOException JavaDoc;
8 import java.util.ResourceBundle JavaDoc;
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 JavaDoc {
17     UIExoComponent exo = (UIExoComponent) component ;
18     Element template = exo.getTemplate() ;
19     ResourceBundle JavaDoc res = getApplicationResourceBundle(context.getExternalContext()) ;
20     template.render(exo, res, context.getResponseWriter()) ;
21   }
22 }
Popular Tags