public abstract class PartialPageContext extends Object
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.)
Modifier | Constructor and Description |
---|---|
protected |
PartialPageContext() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addPartialTarget(String id)
Adds a new partial target to render.
|
abstract void |
addRenderedPartialTarget(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 boolean |
areAllTargetsProcessed()
Returns
true if all of the partial targets have been rendered. |
abstract Iterator<String> |
getPartialTargets()
Returns the set of partial targets for this rendering pass.
|
abstract Iterator<String> |
getRenderedPartialTargets()
Returns the client ids of the partial targets that have been rendered so far.
|
abstract javax.faces.component.visit.VisitContext |
getVisitContext()
Returns the VisitContext to use when partial rendering.
|
abstract boolean |
isInsidePartialTarget()
Returns true if we are inside of a partial target.
|
abstract boolean |
isPartialTarget(String clientId)
Tests whether the specified client id is the client id of a UIComponent that
should be rendered as part of the partial rendering pass.
|
abstract boolean |
isPartialTargetRendered(String id)
Tests whether the specified partial target has been rendered.
|
abstract boolean |
isPossiblePartialTarget(String componentId)
Tests whether the specified component id is a component id of a UIComponent that
might be rendered in this partial rendering pass.
|
public abstract boolean isPartialTarget(String clientId)
true
if a compoennt with this client id should be rendered.isPossiblePartialTarget(java.lang.String)
public abstract boolean isPossiblePartialTarget(String componentId)
Tests whether the specified component id is a component id of a UIComponent that might be rendered in this partial rendering pass.
As calculating clientIds is expensive, this method allows a cheap test to reject components
that shouldn't be rendered. If this method returns true, a more
exact test using isPartialTarget
with the desired clientId should be performed.
true
if a component with this id should be rendered.isPartialTarget(java.lang.String)
public abstract boolean areAllTargetsProcessed()
true
if all of the partial targets have been rendered.true
if all of the partial targets have been rendered.public abstract Iterator<String> getPartialTargets()
public abstract boolean isPartialTargetRendered(String id)
public abstract void addPartialTarget(String id)
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.
id
- The id of the partial target to renderpublic abstract boolean isInsidePartialTarget()
public abstract void addRenderedPartialTarget(String id)
public abstract Iterator<String> getRenderedPartialTargets()
public abstract javax.faces.component.visit.VisitContext getVisitContext()
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.