/** * <p>Create a new {@link UIOutput} instance with default property * values.</p> */ public UIOutput() { super(); setRendererType("javax.faces.Text"); }
/** * <p>Create a new {@link UIOutput} instance with default property * values.</p> */ public UIOutput() { super(); setRendererType("javax.faces.Text"); }
/** * Construct an instance of the UIOutput. */ public UIOutput() { setRendererType("javax.faces.Text"); }
/** * <p>Create a new {@link UIOutput} instance with default property * values.</p> */ public UIOutput() { super(); setRendererType("javax.faces.Text"); }
/** * <p> * Create a new {@link UIOutput} instance with default property values. * </p> */ public UIOutput() { super(); setRendererType("javax.faces.Text"); }
/** * <p> * Create a new {@link UIOutput} instance with default property values. * </p> */ public UIOutput() { super(); setRendererType("javax.faces.Text"); }
/** * Construct an instance of the UIOutput. */ public UIOutput() { setRendererType("javax.faces.Text"); } public Object getLocalValue()
/** * <p>Create a new {@link UIOutput} instance with default property * values.</p> */ public UIOutput() { super(); setRendererType("javax.faces.Text"); }
/** * <p>Create a new {@link UIOutput} instance with default property * values.</p> */ public UIOutput() { super(); setRendererType("javax.faces.Text"); }
/** * <p> * Create a new {@link UIOutput} instance with default property values. * </p> */ public UIOutput() { super(); setRendererType("javax.faces.Text"); }
private static UIOutput createScriptResource() { UIOutput outputScript = new UIOutput(); outputScript.setRendererType(RENDERER_TYPE_JS); return outputScript; }
private static UIOutput createScriptResource() { UIOutput outputScript = new UIOutput(); outputScript.setRendererType(RENDERER_TYPE_JS); return outputScript; }
public static UIComponent createResourceComponent(String name, String lib, String rendererType, boolean isTransient){ UIOutput res = new UIOutput(); res.setRendererType(rendererType); res.setTransient(isTransient); Map attrs = res.getAttributes(); attrs.put("name", name); if (lib != null && lib.trim().length() > 0) { attrs.put("library", lib); } attrs.put("version", "fubar"); return res; }
private static UIComponent createJsfJs() { UIOutput output = new UIOutput(); output.setRendererType("javax.faces.resource.Script"); output.getAttributes().put("name", JSF_SCRIPT_RESOURCE_NAME); output.getAttributes().put("library", JSF_SCRIPT_LIBRARY_NAME); return output; }
private static UIComponent createJsfJs() { UIOutput output = new UIOutput(); output.setRendererType("javax.faces.resource.Script"); output.getAttributes().put("name", JSF_SCRIPT_RESOURCE_NAME); output.getAttributes().put("library", JSF_SCRIPT_LIBRARY_NAME); return output; }
UIOutput css = new UIOutput(); css.setRendererType("javax.faces.resource.Stylesheet"); css.getAttributes().put("library", "mylibrary"); css.getAttributes().put("name", "bar.css"); UIOutput js = new UIOutput(); js.setRendererType("javax.faces.resource.Script"); js.getAttributes().put("library", "mylibrary"); js.getAttributes().put("name", "bar.js"); FacesContext context = FacesContext.getCurrentInstance(); context.getViewRoot().addComponentResource(context, css, "head"); context.getViewRoot().addComponentResource(context, js, "head");
/** * Add a new resource. */ private void addGeneratedResource(FacesContext context, String resourceName, String rendererType, String value, UIViewRoot view) { final UIOutput resource = new UIOutput(); resource.getAttributes().put("name", resourceName); resource.setRendererType(rendererType); resource.getAttributes().put("library", value); view.addComponentResource(context, resource, HEAD); }
protected void pushCssToHead(String library, String name) { UIOutput css = new UIOutput(); css.setRendererType("javax.faces.resource.Stylesheet"); css.getAttributes().put("library", library); css.getAttributes().put("name", name); FacesContext context = this.getFacesContext(); context.getViewRoot().addComponentResource(context, css, "head"); }
String fieldsetHTMLText ="<fieldset id=\"blah\"></fieldset>"; UIOutput verbatim = new UIOutput(); verbatim.setRendererType("javax.faces.Text"); verbatim.getAttributes().put("escape", false); verbatim.setValue(fieldsetHTMLText);
UIOutput fieldsetStart = new UIOutput(); fieldsetStart.setRendererType("javax.faces.Text"); fieldsetStart.getAttributes().put("escape", false); fieldsetStart.setValue("<fieldset>"); UIOutput fieldsetClose = new UIOutput(); fieldsetClose.setRendererType("javax.faces.Text"); fieldsetClose.getAttributes().put("escape", false); fieldsetClose.setValue("</fieldset>"); HtmlInputText inputText = (HtmlInputText) app.createComponent(HtmlInputText.COMPONENT_TYPE); form.getChildren().add(fieldsetStart); form.getChildren().add(inputText); form.getChildren().add(fieldsetClose);