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

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

public class AjaxUtils
extends Object


Field Summary
static String AJAX_COMPONENTS
           
 
Constructor Summary
AjaxUtils()
           
 
Method Summary
static void checkParamValidity(FacesContext facesContext, UIComponent uiComponent, Class compClass)
           
static void encodeAjaxComponent(FacesContext facesContext, UIComponent component)
           
static void ensureDecoded(FacesContext facesContext, String clientId)
           
static void ensureDecoded(FacesContext facesContext, UIComponent component)
           
static Map<String,UIComponent> getAjaxComponents(FacesContext facesContext)
           
static boolean isAjaxRequest(FacesContext facesContext)
           
static Map<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, String url)
           
static void redirect(HttpServletResponse response, 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 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,
                                      Class compClass)

encodeAjaxComponent

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

processAjax

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

processActiveAjaxComponent

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

processAjaxOnChildren

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

parseAndStoreComponents

public static Map<String,UIComponent> parseAndStoreComponents(FacesContext facesContext)

getAjaxComponents

public static Map<String,UIComponent> getAjaxComponents(FacesContext facesContext)

ensureDecoded

public static void ensureDecoded(FacesContext facesContext,
                                 String clientId)

ensureDecoded

public static void ensureDecoded(FacesContext facesContext,
                                 UIComponent component)

redirect

public static boolean redirect(FacesContext facesContext,
                               String url)
                        throws IOException
Throws:
IOException

redirect

public static void redirect(HttpServletResponse response,
                            String url)
                     throws IOException
Throws:
IOException


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.