org.apache.myfaces.tobago.ajax
Class AjaxUtils

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

public class AjaxUtils
extends Object


Constructor Summary
AjaxUtils()
           
 
Method Summary
static void addAjaxComponent(javax.faces.context.FacesContext facesContext, String clientId)
           
static void addAjaxComponent(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
static boolean addUIMessagesToRenderedPartially(javax.faces.context.FacesContext context)
           
static Set<String> getRequestPartialIds(javax.faces.context.FacesContext facesContext)
           
static boolean isAjaxRequest(javax.faces.context.FacesContext facesContext)
           
static boolean redirect(javax.faces.context.FacesContext facesContext, String url)
           
static void redirect(javax.servlet.http.HttpServletResponse response, String url)
           
static void removeAjaxComponent(javax.faces.context.FacesContext facesContext, String clientId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxUtils

public AjaxUtils()
Method Detail

isAjaxRequest

public static boolean isAjaxRequest(javax.faces.context.FacesContext facesContext)

removeAjaxComponent

public static void removeAjaxComponent(javax.faces.context.FacesContext facesContext,
                                       String clientId)

addAjaxComponent

public static void addAjaxComponent(javax.faces.context.FacesContext facesContext,
                                    String clientId)

addAjaxComponent

public static void addAjaxComponent(javax.faces.context.FacesContext facesContext,
                                    javax.faces.component.UIComponent component)

getRequestPartialIds

public static Set<String> getRequestPartialIds(javax.faces.context.FacesContext facesContext)

addUIMessagesToRenderedPartially

public static boolean addUIMessagesToRenderedPartially(javax.faces.context.FacesContext context)
Parameters:
context -
Returns:
true if a UIMessage component has added to renderedPartially

redirect

public static boolean redirect(javax.faces.context.FacesContext facesContext,
                               String url)
                        throws IOException
Throws:
IOException

redirect

public static void redirect(javax.servlet.http.HttpServletResponse response,
                            String url)
                     throws IOException
Throws:
IOException


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