|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.contexts.PageContext
public class PageContext
The page context allows you to store state during a request that renders a page, and access that state from any postback request that originates from that page. The state is destroyed at the end of the second request. During the RENDER_RESPONSE phase, the page context instance refers to the page that is about to be rendered. Prior to the INVOKE_APPLICATION phase, it refers to the page that was the source of the request. During the INVOKE_APPLICATION phase, set() and remove() manipulate the context of the page that is about to be rendered, while get() returns values from the page that was the source of the request.
Constructor Summary | |
---|---|
PageContext()
|
Method Summary | |
---|---|
void |
flush()
Put the buffered context variables in the faces view root, at the beginning of the render phase. |
Object |
get(Class clazz)
Get a component instance, by its component name, as determined by the @Name annotation value. |
Object |
get(String name)
Get a value by name. |
String[] |
getNames()
Get all names defined in the context. |
ScopeType |
getType()
Get the scope that this context object is associated with, |
boolean |
isSet(String name)
Is the value set? |
void |
remove(String name)
Unset a value. |
void |
set(String name,
Object value)
Set a value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PageContext()
Method Detail |
---|
public ScopeType getType()
Context
getType
in interface Context
public Object get(String name)
Context
get
in interface Context
public boolean isSet(String name)
Context
isSet
in interface Context
public void set(String name, Object value)
Context
set
in interface Context
public void remove(String name)
Context
remove
in interface Context
public String[] getNames()
Context
getNames
in interface Context
public String toString()
toString
in class Object
public Object get(Class clazz)
Context
get
in interface Context
public void flush()
flush
in interface Context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |