|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.context.PartialPageContext
public abstract class PartialPageContext
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.)
Constructor Summary | |
---|---|
protected |
PartialPageContext()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PartialPageContext()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |