org.jboss.seam.faces.context
Class RenderScopedContext
java.lang.Object
org.jboss.seam.faces.context.RenderScopedContext
- All Implemented Interfaces:
- Serializable, EventListener, Context, PhaseListener
@RequestScoped
public class RenderScopedContext
- extends Object
- implements Context, PhaseListener, Serializable
This class provides lifecycle management for the RenderContext
- Author:
- Lincoln Baxter, III, Brian Leathem
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RENDER_SCOPE_URL_KEY
public static final String RENDER_SCOPE_URL_KEY
RenderScopedContext
public RenderScopedContext()
getContextInstance
@Produces
@Named
@RequestScoped
public RenderContext getContextInstance()
afterPhase
public void afterPhase(PhaseEvent event)
- Destroy the current context since Render Response has completed.
- Specified by:
afterPhase in interface PhaseListener
beforePhase
public void beforePhase(PhaseEvent arg0)
- Specified by:
beforePhase in interface PhaseListener
getPhaseId
public PhaseId getPhaseId()
- Specified by:
getPhaseId in interface PhaseListener
get
public <T> T get(Contextual<T> component)
- Specified by:
get in interface Context
get
public <T> T get(Contextual<T> component,
CreationalContext<T> creationalContext)
- Specified by:
get in interface Context
isActive
public boolean isActive()
- Specified by:
isActive in interface Context
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScope in interface Context
countRenderContexts
public int countRenderContexts()
getRequestParameterName
public String getRequestParameterName()
- Get the name of the request parameter to contain the current
RenderContext id.
Copyright © 2009-2011 Seam Framework. All Rights Reserved.