|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.ajax.AjaxUtil
public class AjaxUtil
Field Summary | |
---|---|
static java.lang.String |
AJAX_AXTARGET
This parameter contains the component id to delegate the Ajax request to. |
static java.lang.String |
AJAX_COMPID
This parameter contains the component id used in a partial refresh id. |
static java.lang.String |
AJAX_IFRAME_ENVELOPE
|
static java.lang.String |
AJAX_MODE
This parameter contains an optional mode that can be check by a component. |
static java.lang.String |
AJAX_VIEWID
This parameter contains the JSF view id to restore. |
Constructor Summary | |
---|---|
AjaxUtil()
|
Method Summary | |
---|---|
static java.lang.String |
computeComponentId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
static FacesAjaxComponent |
getAjaxComponent(javax.faces.context.FacesContext context)
Check if the request is an Ajax partial refresh request. |
static java.lang.String |
getAjaxComponentId(javax.faces.context.FacesContext context)
Return the Ajax component id associated with this FacesContext. |
static java.lang.String |
getAjaxMode(javax.faces.context.FacesContext context)
Get the request ajax mode. |
static java.lang.String |
getAjaxUrl(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String pathInfo,
java.lang.String ajaxId)
Compose the URL for a Ajax request related to a component. |
static void |
initRender(javax.faces.context.FacesContext context)
Initialize the JSF objects before rendering som markup. |
static boolean |
isAjaxNullResponseWriter(javax.faces.context.ResponseWriter rw)
Check if the Nullwriter is used. |
static boolean |
isAjaxPartialRefresh(javax.faces.context.FacesContext context)
Check if the request is an Ajax partial refresh request. |
static boolean |
isInRenderedChain(FacesContextEx context,
javax.faces.component.UIComponent component)
Check if a component is in the chain of the renderered one. |
static boolean |
isRendered(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
static boolean |
isRendering(javax.faces.context.FacesContext context)
|
static void |
renderMarkup(javax.faces.context.FacesContext context,
RenderCallback callback,
boolean initRender)
Render a piece of markup when executed in a Ajax request. |
static void |
setRendering(javax.faces.context.FacesContext context,
boolean rendering)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AJAX_VIEWID
public static final java.lang.String AJAX_AXTARGET
public static final java.lang.String AJAX_COMPID
public static final java.lang.String AJAX_MODE
public static final java.lang.String AJAX_IFRAME_ENVELOPE
Constructor Detail |
---|
public AjaxUtil()
Method Detail |
---|
public static boolean isAjaxPartialRefresh(javax.faces.context.FacesContext context)
context
-
public static java.lang.String getAjaxMode(javax.faces.context.FacesContext context)
context
-
public static java.lang.String getAjaxComponentId(javax.faces.context.FacesContext context)
public static FacesAjaxComponent getAjaxComponent(javax.faces.context.FacesContext context)
context
-
public static java.lang.String computeComponentId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
public static boolean isRendering(javax.faces.context.FacesContext context)
public static boolean isRendered(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
public static boolean isInRenderedChain(FacesContextEx context, javax.faces.component.UIComponent component)
context
- component
-
public static void setRendering(javax.faces.context.FacesContext context, boolean rendering)
public static boolean isAjaxNullResponseWriter(javax.faces.context.ResponseWriter rw)
public static java.lang.String getAjaxUrl(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String pathInfo, java.lang.String ajaxId)
public static void initRender(javax.faces.context.FacesContext context) throws java.io.IOException
java.io.IOException
public static void renderMarkup(javax.faces.context.FacesContext context, RenderCallback callback, boolean initRender) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |