public class ScriptWriter
extends java.lang.Object
| Constructor and Description |
|---|
ScriptWriter(javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component) |
| Modifier and Type | Method and Description |
|---|---|
void |
endScript() |
static ScriptWriter |
insertScript(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Write the script markup and then gradually write the script code by calling the 'write' write methods on the
ScriptWriter instance.
|
static void |
insertScript(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String script)
Write script markup and script code in one method call.
|
static void |
insertScript(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String script,
java.lang.String id)
Write script markup and script code in one method call.
|
void |
startScript() |
void |
write(boolean val) |
void |
write(char val) |
void |
write(double val) |
void |
write(float val) |
void |
write(int val) |
void |
write(long val) |
void |
write(java.lang.Object val) |
void |
write(java.lang.String val) |
public ScriptWriter(javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component)
public static void insertScript(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String script)
throws java.io.IOException
context - the curent FacesContextcomponent - the component making the callscript - the codejava.io.IOExceptionpublic static void insertScript(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String script,
java.lang.String id)
throws java.io.IOException
context - the curent FacesContextcomponent - the component making the callscript - the codeid - the id of the rendered spanjava.io.IOExceptionpublic static ScriptWriter insertScript(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
context - the curent FacesContextcomponent - the component making the calljava.io.IOExceptionpublic void startScript()
throws java.io.IOException
java.io.IOExceptionpublic void write(java.lang.String val)
throws java.io.IOException
java.io.IOExceptionpublic void write(int val)
throws java.io.IOException
java.io.IOExceptionpublic void write(long val)
throws java.io.IOException
java.io.IOExceptionpublic void write(double val)
throws java.io.IOException
java.io.IOExceptionpublic void write(float val)
throws java.io.IOException
java.io.IOExceptionpublic void write(boolean val)
throws java.io.IOException
java.io.IOExceptionpublic void write(char val)
throws java.io.IOException
java.io.IOExceptionpublic void write(java.lang.Object val)
throws java.io.IOException
java.io.IOExceptionpublic void endScript()
throws java.io.IOException
java.io.IOExceptionCopyright 2017 ICEsoft Technologies Canada Corp., All Rights Reserved.