|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.faces.util.context.FacesRequestContext
public abstract class FacesRequestContext
This class defines the usage of a ThreadLocal singleton that exists alongside the FacesContext.
| Constructor Summary | |
|---|---|
FacesRequestContext()
|
|
| Method Summary | |
|---|---|
abstract void |
addScript(javax.faces.context.FacesContext facesContext,
String script)
Adds the specified script to the list of scripts that are to be executed on the client. |
abstract void |
addScript(Script script)
Adds the specified Script to the list of scripts that are to be executed on the client. |
abstract void |
addScript(String script)
Deprecated. Call addScript(FacesContext, String) instead.
Adds the specified script to the list of scripts that are to be executed on the client. |
static FacesRequestContext |
getCurrentInstance()
|
abstract List<Script> |
getScripts()
Returns an immutable list of scripts that were added via the addScript(Script) or addScript(FacesContext,String) method. |
abstract void |
release()
Releases any resources that are associated with this FacesRequestContext instance. |
static void |
setCurrentInstance(FacesRequestContext facesRequestContext)
Sets or removes the value of the ThreadLocal singleton instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FacesRequestContext()
| Method Detail |
|---|
public static FacesRequestContext getCurrentInstance()
public static void setCurrentInstance(FacesRequestContext facesRequestContext)
ThreadLocal singleton instance.
facesRequestContext - If a non-null value is specified, then it will become the singleton value. If null
is specified, then singleton value is removed from the ThreadLocal. is removed.public abstract void addScript(Script script)
Script to the list of scripts that are to be executed on the client.
@Deprecated public abstract void addScript(String script)
addScript(FacesContext, String) instead.
Adds the specified script to the list of scripts that are to be executed on the client.
script - The script that is to be added.
public abstract void addScript(javax.faces.context.FacesContext facesContext,
String script)
facesContext - The current faces context.script - The script that is to be added.public abstract List<Script> getScripts()
addScript(Script) or addScript(FacesContext,String) method.
public abstract void release()
FacesRequestContext instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||