1 21 package com.sun.enterprise.tools.jsfext.component.factory.basic; 22 23 import com.sun.enterprise.tools.jsfext.component.factory.ComponentFactoryBase; 24 import com.sun.enterprise.tools.jsfext.layout.descriptor.LayoutComponent; 25 26 import com.sun.web.ui.component.Script; 27 28 import javax.faces.component.UIComponent; 29 import javax.faces.context.FacesContext; 30 31 32 38 public class ScriptFactory extends ComponentFactoryBase { 39 40 51 public UIComponent create(FacesContext context, LayoutComponent descriptor, UIComponent parent) { 52 Script script = new Script(); 54 55 if (parent != null) { 58 addChild(context, descriptor, parent, script); 59 } 60 61 setOptions(context, descriptor, script); 63 64 return script; 66 } 67 } 68 | Popular Tags |