当前页面:
在线文档首页 >
JBoss Seam 1.1.0 cr1 API 英文版文档
PageContext (JBoss Seam API Documentation) - JBoss Seam 1.1.0 cr1 API 英文版文档
org.jboss.seam.contexts
Class PageContext
java.lang.Object
org.jboss.seam.contexts.PageContext
- All Implemented Interfaces:
- Context
public class PageContext
- extends Object
- implements Context
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.
- Version:
- $Revision: 1.11 $
- Author:
- Gavin King
PageContext
public PageContext()
getType
public ScopeType getType()
- Specified by:
getType
in interface Context
get
public Object get(String name)
- Specified by:
get
in interface Context
isSet
public boolean isSet(String name)
- Specified by:
isSet
in interface Context
set
public void set(String name,
Object value)
- Specified by:
set
in interface Context
remove
public void remove(String name)
- Specified by:
remove
in interface Context
getNames
public String[] getNames()
- Specified by:
getNames
in interface Context
toString
public String toString()
- Overrides:
toString
in class Object
get
public Object get(Class clazz)
- Specified by:
get
in interface Context
flush
public void flush()
- Put the buffered context variables in the faces view root,
at the beginning of the render phase.
- Specified by:
flush
in interface Context