org.openfaces.ajax
Class AjaxRequest

java.lang.Object
  extended by org.openfaces.ajax.AjaxRequest

public class AjaxRequest
extends java.lang.Object


Method Summary
 void addReloadedComponent(java.lang.String clientId)
           
 void addReloadedComponent(javax.faces.component.UIComponent component)
           
 java.lang.Object getAjaxResult()
           
static AjaxRequest getInstance()
           
static AjaxRequest getInstance(javax.faces.context.FacesContext context)
           
 java.util.Set<java.lang.String> getReloadedComponentIds()
           
 void setAjaxResult(java.lang.Object ajaxResult)
          Specifies the value that can optionally be sent to the client-side by the server action processing code.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AjaxRequest getInstance()

getInstance

public static AjaxRequest getInstance(javax.faces.context.FacesContext context)

addReloadedComponent

public void addReloadedComponent(java.lang.String clientId)

addReloadedComponent

public void addReloadedComponent(javax.faces.component.UIComponent component)

getReloadedComponentIds

public java.util.Set<java.lang.String> getReloadedComponentIds()

getAjaxResult

public java.lang.Object getAjaxResult()
Returns:
the Ajax request result value as described in the setAjaxResult method.

setAjaxResult

public void setAjaxResult(java.lang.Object ajaxResult)
Specifies the value that can optionally be sent to the client-side by the server action processing code. This feature can be utilized for implementing the application-specific logic which requires some data to be sent along with the Ajax response. The value specified with this method will be available through the ajaxResult field of the event object passed to the client-side onajaxend event.

Parameters:
ajaxResult - any primitive type, String, any Iterable instance or a Map.


Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.