org.apache.myfaces.tobago.ajax.api
Class AjaxUtils

java.lang.Object
  extended by org.apache.myfaces.tobago.ajax.api.AjaxUtils

public class AjaxUtils
extends java.lang.Object


Field Summary
static java.lang.String AJAX_COMPONENTS
           
 
Constructor Summary
AjaxUtils()
           
 
Method Summary
static void checkParamValidity(FacesContext facesContext, UIComponent uiComponent, java.lang.Class compClass)
           
static void encodeAjaxComponent(FacesContext facesContext, UIComponent component)
           
static void ensureDecoded(FacesContext facesContext, java.lang.String clientId)
           
static void ensureDecoded(FacesContext facesContext, UIComponent component)
           
static java.util.Map<java.lang.String,UIComponent> getAjaxComponents(FacesContext facesContext)
           
static java.util.Set<java.lang.String> getRequestPartialIds(FacesContext facesContext)
           
static boolean isAjaxRequest(FacesContext facesContext)
           
static java.util.Map<java.lang.String,UIComponent> parseAndStoreComponents(FacesContext facesContext)
           
static void processActiveAjaxComponent(FacesContext facesContext, UIComponent component)
           
static void processAjax(FacesContext facesContext, UIComponent component)
           
static void processAjaxOnChildren(FacesContext facesContext, UIComponent component)
           
static boolean redirect(FacesContext facesContext, java.lang.String url)
           
static void redirect(HttpServletResponse response, java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AJAX_COMPONENTS

public static final java.lang.String AJAX_COMPONENTS
Constructor Detail

AjaxUtils

public AjaxUtils()
Method Detail

isAjaxRequest

public static boolean isAjaxRequest(FacesContext facesContext)

checkParamValidity

public static void checkParamValidity(FacesContext facesContext,
                                      UIComponent uiComponent,
                                      java.lang.Class compClass)

encodeAjaxComponent

public static void encodeAjaxComponent(FacesContext facesContext,
                                       UIComponent component)
                                throws java.io.IOException
Throws:
java.io.IOException

processAjax

public static void processAjax(FacesContext facesContext,
                               UIComponent component)
                        throws java.io.IOException
Throws:
java.io.IOException

processActiveAjaxComponent

public static void processActiveAjaxComponent(FacesContext facesContext,
                                              UIComponent component)
                                       throws java.io.IOException
Throws:
java.io.IOException

processAjaxOnChildren

public static void processAjaxOnChildren(FacesContext facesContext,
                                         UIComponent component)
                                  throws java.io.IOException
Throws:
java.io.IOException

getRequestPartialIds

public static java.util.Set<java.lang.String> getRequestPartialIds(FacesContext facesContext)

parseAndStoreComponents

public static java.util.Map<java.lang.String,UIComponent> parseAndStoreComponents(FacesContext facesContext)

getAjaxComponents

public static java.util.Map<java.lang.String,UIComponent> getAjaxComponents(FacesContext facesContext)

ensureDecoded

public static void ensureDecoded(FacesContext facesContext,
                                 java.lang.String clientId)

ensureDecoded

public static void ensureDecoded(FacesContext facesContext,
                                 UIComponent component)

redirect

public static boolean redirect(FacesContext facesContext,
                               java.lang.String url)
                        throws java.io.IOException
Throws:
java.io.IOException

redirect

public static void redirect(HttpServletResponse response,
                            java.lang.String url)
                     throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.