1 23 package com.sun.enterprise.tools.jsfext.component.factory.basic; 24 25 import com.sun.enterprise.tools.jsfext.component.factory.ComponentFactoryBase; 26 import com.sun.enterprise.tools.jsfext.layout.descriptor.LayoutComponent; 27 28 import com.sun.web.ui.component.StaticText; 29 30 import javax.faces.component.UIComponent; 31 import javax.faces.context.FacesContext; 32 33 34 40 public class StaticTextFactory extends ComponentFactoryBase { 41 42 53 public UIComponent create(FacesContext context, LayoutComponent descriptor, UIComponent parent) { 54 StaticText text = new StaticText(); 56 57 if (parent != null) { 60 addChild(context, descriptor, parent, text); 61 } 62 63 text.setEscape(false); 65 67 setOptions(context, descriptor, text); 69 70 return text; 72 } 73 } 74 | Popular Tags |