Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Author:
  Gavin King

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

### PageContext

    public PageContext()

Method Detail

### getType

    public ScopeType getType()

  Description copied from interface: `Context`
  Get the scope that this context object is associated with,

  Specified by:
    `getType` in interface `Context`

### get

    public Object get(String name)

  Description copied from interface: `Context`
  Get a value by name.

  Specified by:
    `get` in interface `Context`

### isSet

    public boolean isSet(String name)

  Description copied from interface: `Context`
  Is the value set?

  Specified by:
    `isSet` in interface `Context`

### set

    public void set(String name,
                    Object value)

  Description copied from interface: `Context`
  Set a value.

  Specified by:
    `set` in interface `Context`

### remove

    public void remove(String name)

  Description copied from interface: `Context`
  Unset a value.

  Specified by:
    `remove` in interface `Context`

### getNames

    public String[] getNames()

  Description copied from interface: `Context`
  Get all names defined in the context.

  Specified by:
    `getNames` in interface `Context`

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### get

    public Object get(Class clazz)

  Description copied from interface: `Context`
  Get a component instance, by its component name, as determined by the @Name annotation value.

  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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD