org.apache.myfaces.trinidad.context
Class PartialPageContext

java.lang.Object
  extended by org.apache.myfaces.trinidad.context.PartialPageContext

public abstract class PartialPageContext
extends java.lang.Object

Context object which is used to track the targets of a partial page render during the Render Response phase. Clients never need to explicitly create PartialPageContext objects, but can retrieve them from a RenderingContext instance. For general access to Partial Page Rendering during all phases, see APIs on the RequestContext API.

During the partial rendering pass, some Renderer implementations may modify the set of partial targets that are rendered. (For example, the FormRenderer adds a partial target for its shared hidden fields.)

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/ppr/PartialPageContext.java#0 $) $Date: 10-nov-2005.19:02:58 $

Constructor Summary
protected PartialPageContext()
           
 
Method Summary
abstract  void addPartialTarget(java.lang.String id)
          Adds a new partial target to render.
abstract  void addRenderedPartialTarget(java.lang.String id)
          Adds a partial target that has already been rendered; this is needed if the "clientId" of a component does not match up to the top element (or elements).
abstract  java.util.Iterator<java.lang.String> getPartialTargets()
          Returns the set of partial targets for this rendering pass.
abstract  java.util.Iterator<java.lang.String> getRenderedPartialTargets()
           
abstract  boolean isInsidePartialTarget()
          Returns true if we are inside of a partial target.
abstract  boolean isPartialTarget(java.lang.String id)
          Tests whether the specified id is the client id of a UIComponent that should be rendered as part of the partial rendering pass.
abstract  boolean isPartialTargetRendered(java.lang.String id)
          Tests whether the specified partial target has been rendered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialPageContext

protected PartialPageContext()
Method Detail

isPartialTarget

public abstract boolean isPartialTarget(java.lang.String id)
Tests whether the specified id is the client id of a UIComponent that should be rendered as part of the partial rendering pass.


getPartialTargets

public abstract java.util.Iterator<java.lang.String> getPartialTargets()
Returns the set of partial targets for this rendering pass.


isPartialTargetRendered

public abstract boolean isPartialTargetRendered(java.lang.String id)
Tests whether the specified partial target has been rendered.


addPartialTarget

public abstract void addPartialTarget(java.lang.String id)
Adds a new partial target to render.

This method may be called during the partial rendering pass to add to the set of partial targets, but only if the pass has not yet been completed.

Parameters:
id - The id of the partial target to render

isInsidePartialTarget

public abstract boolean isInsidePartialTarget()
Returns true if we are inside of a partial target.


addRenderedPartialTarget

public abstract void addRenderedPartialTarget(java.lang.String id)
Adds a partial target that has already been rendered; this is needed if the "clientId" of a component does not match up to the top element (or elements).


getRenderedPartialTargets

public abstract java.util.Iterator<java.lang.String> getRenderedPartialTargets()


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.