}
child.encodeEnd(facesContext);
}
public void themeScript(FacesContext context, UIComponent component) throws IOException {
Theme theme = getTheme(context, component);
if (null != theme) {
String script = theme.getScript();
if (null != script) {
ResponseWriter writer = context.getResponseWriter();
writer.startElement(HtmlConstants.SCRIPT_ELEM, component);
writer.writeAttribute(HtmlConstants.TYPE_ATTR, HtmlConstants.JAVASCRIPT_TYPE, null);
script = context.getApplication().getViewHandler().getResourceURL(context, script);