|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PartialPageUtils
public final class PartialPageUtils
Utility methods for Renderers which support partial page rendering.
| Method Summary | |
|---|---|
static boolean |
containsPprTargets(org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
java.lang.String clientId)
Check if a NamingContainer has any partial targets |
static org.apache.myfaces.trinidad.context.PartialPageContext |
createPartialPageContext(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RequestContext afContext)
|
static void |
forceOptimizedPPR(javax.faces.context.FacesContext context)
Forces optimized PPR (using tree visit to render components) |
static void |
forcePartialRendering(javax.faces.context.FacesContext context)
Force partial rendering on for requests that may not have sent a "partial" parameter. |
static boolean |
isOptimizedPPREnabled(javax.faces.context.FacesContext context,
boolean checkIsPPR)
Returns true if optimized PPR is enabled for this request. |
static boolean |
isPartialRenderingPass(org.apache.myfaces.trinidad.context.RenderingContext arc)
Returns true if we are performing a partial page render. |
static boolean |
isPartialRequest(javax.faces.context.FacesContext context)
This method delegates to the RequestContext.isPartialRequest() with the exception that JSF Ajax render="@all" requests are reported as non-partial |
static boolean |
isPPRActive(javax.faces.context.FacesContext context)
Test if PPR is active during rendering. |
static void |
markPPRActive(javax.faces.context.FacesContext context)
Mark that PPR is in fact active during rendering. |
static void |
renderNoopResponse(javax.faces.context.FacesContext context)
This method writes a |
static boolean |
supportsBlocking(org.apache.myfaces.trinidad.context.RenderingContext arc)
|
static boolean |
supportsPartialRendering(org.apache.myfaces.trinidad.context.RenderingContext arc)
Tests whether partial page rendering is supported for the current render. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isOptimizedPPREnabled(javax.faces.context.FacesContext context,
boolean checkIsPPR)
true if optimized PPR is enabled for this request.
true if optimized PPR is enabled for this request
public static boolean containsPprTargets(org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
java.lang.String clientId)
public static boolean isPartialRequest(javax.faces.context.FacesContext context)
context -
public static void forcePartialRendering(javax.faces.context.FacesContext context)
public static org.apache.myfaces.trinidad.context.PartialPageContext createPartialPageContext(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RequestContext afContext)
public static boolean isPartialRenderingPass(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static boolean supportsPartialRendering(org.apache.myfaces.trinidad.context.RenderingContext arc)
Partial page rendering is not supported on all user agents. This method returns false if partial page rendering is not supported by the agent associated with the provided RenderingContext.
This method returns false if the disable-partial-rendering configuration element is set to true. Otherwise, this method returns true. (PPR is considered accessible, so we do not check the accessibility mode)
public static boolean supportsBlocking(org.apache.myfaces.trinidad.context.RenderingContext arc)
public static boolean isPPRActive(javax.faces.context.FacesContext context)
public static void markPPRActive(javax.faces.context.FacesContext context)
public static void forceOptimizedPPR(javax.faces.context.FacesContext context)
context -
public static void renderNoopResponse(javax.faces.context.FacesContext context)
throws java.io.IOException
context - the FacesContext
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||