public final class AjaxRendererUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AJAX_ABORT_ATTR |
static String |
AJAX_AREAS_RENDERED |
static String |
AJAX_DELAY_ATTR |
static String |
AJAX_QUEUE_ATTR |
static String |
AJAX_SINGLE_ATTR |
static String |
AJAX_SINGLE_PARAMETER_NAME |
static String |
BEGIN_EVENT_NAME |
static String |
ONBEGIN_ATTR_NAME |
static String |
ONCOMPLETE_CONTENT_ID
Attribute for keep JavaScript function name for call after complete request.
|
static String |
QUEUE_ID_ATTRIBUTE |
static String |
SIMILARITY_GROUPING_ID_ATTR |
static String |
STATUS_ATTR_NAME
Attribute for keep clientId of status component
|
static String |
VALUE_ATTR |
Modifier and Type | Method and Description |
---|---|
static AjaxFunction |
buildAjaxFunction(javax.faces.component.behavior.ClientBehaviorContext behaviorContext,
AjaxClientBehavior behavior) |
static AjaxFunction |
buildAjaxFunction(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
Create call to Ajax Submit function with first two parameters
|
static JSFunctionDefinition |
buildAjaxOnBeforeDomUpdate(String body) |
static JSFunctionDefinition |
buildAjaxOncomplete(String body) |
static AjaxOptions |
buildEventOptions(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component) |
static StringBuffer |
buildOnClick(javax.faces.component.UIComponent uiComponent,
javax.faces.context.FacesContext facesContext)
Build JavaScript onclick event for given component
|
static StringBuffer |
buildOnClick(javax.faces.component.UIComponent uiComponent,
javax.faces.context.FacesContext facesContext,
boolean omitDefaultActionUrl)
Build JavaScript onclick event for given component
|
static StringBuffer |
buildOnEvent(javax.faces.component.UIComponent uiComponent,
javax.faces.context.FacesContext facesContext,
String eventName)
Build JavaScript event for component
|
static StringBuffer |
buildOnEvent(javax.faces.component.UIComponent uiComponent,
javax.faces.context.FacesContext facesContext,
String eventName,
boolean omitDefaultActionUrl)
Build JavaScript event for component
|
static String |
getAjaxStatus(javax.faces.component.UIComponent component)
Get status area Id for given component.
|
static String |
getQueueId(javax.faces.component.UIComponent component) |
public static final String BEGIN_EVENT_NAME
public static final String AJAX_ABORT_ATTR
public static final String AJAX_AREAS_RENDERED
public static final String AJAX_DELAY_ATTR
public static final String AJAX_QUEUE_ATTR
public static final String AJAX_SINGLE_ATTR
public static final String AJAX_SINGLE_PARAMETER_NAME
public static final String ONBEGIN_ATTR_NAME
public static final String ONCOMPLETE_CONTENT_ID
public static final String SIMILARITY_GROUPING_ID_ATTR
public static final String STATUS_ATTR_NAME
public static final String VALUE_ATTR
public static final String QUEUE_ID_ATTRIBUTE
public static StringBuffer buildOnClick(javax.faces.component.UIComponent uiComponent, javax.faces.context.FacesContext facesContext)
uiComponent
- - component for build eventfacesContext
- StringBuffer
with Javascript codepublic static StringBuffer buildOnClick(javax.faces.component.UIComponent uiComponent, javax.faces.context.FacesContext facesContext, boolean omitDefaultActionUrl)
uiComponent
- - component for build eventfacesContext
- omitDefaultActionUrl
- - default action URL is not encoded if parameter is trueStringBuffer
with Javascript codepublic static StringBuffer buildOnEvent(javax.faces.component.UIComponent uiComponent, javax.faces.context.FacesContext facesContext, String eventName)
uiComponent
- - component for build eventfacesContext
- eventName
- - name of eventStringBuffer
with Javascript codepublic static StringBuffer buildOnEvent(javax.faces.component.UIComponent uiComponent, javax.faces.context.FacesContext facesContext, String eventName, boolean omitDefaultActionUrl)
uiComponent
- - component for build eventfacesContext
- eventName
- - name of eventomitDefaultActionUrl
- - default action URL is not encoded if parameter is trueStringBuffer
with Javascript codepublic static AjaxOptions buildEventOptions(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
public static AjaxFunction buildAjaxFunction(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
facesContext
- component
- public static AjaxFunction buildAjaxFunction(javax.faces.component.behavior.ClientBehaviorContext behaviorContext, AjaxClientBehavior behavior)
public static String getAjaxStatus(javax.faces.component.UIComponent component)
component
- null
public static String getQueueId(javax.faces.component.UIComponent component)
public static JSFunctionDefinition buildAjaxOncomplete(String body)
public static JSFunctionDefinition buildAjaxOnBeforeDomUpdate(String body)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.