Package org.primefaces.util
Class AjaxRequestBuilder
- java.lang.Object
-
- org.primefaces.util.AjaxRequestBuilder
-
public class AjaxRequestBuilder extends Object
Helper to generate javascript code of an ajax call
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBuilder
buffer
protected javax.faces.context.FacesContext
context
-
Constructor Summary
Constructors Constructor Description AjaxRequestBuilder(javax.faces.context.FacesContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AjaxRequestBuilder
async(boolean async)
String
build()
String
buildBehavior(ClientBehaviorRenderingMode mode)
AjaxRequestBuilder
delay(String delay)
AjaxRequestBuilder
event(String event)
AjaxRequestBuilder
form(String form)
AjaxRequestBuilder
form(AjaxSource source, javax.faces.component.UIComponent component)
AjaxRequestBuilder
form(AjaxSource source, javax.faces.component.UIComponent component, javax.faces.component.UIForm formComponent)
StringBuilder
getBuffer()
AjaxRequestBuilder
global(boolean global)
AjaxRequestBuilder
ignoreAutoUpdate(boolean ignoreAutoUpdate)
AjaxRequestBuilder
init()
AjaxRequestBuilder
oncomplete(String oncomplete)
AjaxRequestBuilder
onerror(String onerror)
AjaxRequestBuilder
onstart(String onstart)
AjaxRequestBuilder
onsuccess(String onsuccess)
AjaxRequestBuilder
params(Map<String,List<String>> params)
AjaxRequestBuilder
params(javax.faces.component.UIComponent component)
AjaxRequestBuilder
partialSubmit(boolean value, boolean partialSubmitSet, String partialSubmitFilter)
AjaxRequestBuilder
passParams()
AjaxRequestBuilder
preventDefault()
AjaxRequestBuilder
process(javax.faces.component.UIComponent component, String expressions)
AjaxRequestBuilder
process(javax.faces.component.UIComponent component, String expressions, boolean ignoreNoResult)
void
reset()
AjaxRequestBuilder
resetValues(boolean value, boolean resetValuesSet)
AjaxRequestBuilder
skipChildren(boolean skipChildren)
AjaxRequestBuilder
source(String source)
AjaxRequestBuilder
timeout(int timeout)
AjaxRequestBuilder
update(javax.faces.component.UIComponent component, String expressions)
AjaxRequestBuilder
update(javax.faces.component.UIComponent component, String expressions, boolean ignoreNoResult)
-
-
-
Field Detail
-
buffer
protected StringBuilder buffer
-
context
protected javax.faces.context.FacesContext context
-
-
Method Detail
-
init
public AjaxRequestBuilder init()
-
source
public AjaxRequestBuilder source(String source)
-
form
public AjaxRequestBuilder form(AjaxSource source, javax.faces.component.UIComponent component, javax.faces.component.UIForm formComponent)
-
form
public AjaxRequestBuilder form(AjaxSource source, javax.faces.component.UIComponent component)
-
form
public AjaxRequestBuilder form(String form)
-
process
public AjaxRequestBuilder process(javax.faces.component.UIComponent component, String expressions)
-
process
public AjaxRequestBuilder process(javax.faces.component.UIComponent component, String expressions, boolean ignoreNoResult)
-
update
public AjaxRequestBuilder update(javax.faces.component.UIComponent component, String expressions)
-
update
public AjaxRequestBuilder update(javax.faces.component.UIComponent component, String expressions, boolean ignoreNoResult)
-
event
public AjaxRequestBuilder event(String event)
-
async
public AjaxRequestBuilder async(boolean async)
-
skipChildren
public AjaxRequestBuilder skipChildren(boolean skipChildren)
-
global
public AjaxRequestBuilder global(boolean global)
-
delay
public AjaxRequestBuilder delay(String delay)
-
timeout
public AjaxRequestBuilder timeout(int timeout)
-
ignoreAutoUpdate
public AjaxRequestBuilder ignoreAutoUpdate(boolean ignoreAutoUpdate)
-
partialSubmit
public AjaxRequestBuilder partialSubmit(boolean value, boolean partialSubmitSet, String partialSubmitFilter)
-
resetValues
public AjaxRequestBuilder resetValues(boolean value, boolean resetValuesSet)
-
onstart
public AjaxRequestBuilder onstart(String onstart)
-
onerror
public AjaxRequestBuilder onerror(String onerror)
-
onsuccess
public AjaxRequestBuilder onsuccess(String onsuccess)
-
oncomplete
public AjaxRequestBuilder oncomplete(String oncomplete)
-
params
public AjaxRequestBuilder params(javax.faces.component.UIComponent component)
-
params
public AjaxRequestBuilder params(Map<String,List<String>> params)
-
passParams
public AjaxRequestBuilder passParams()
-
preventDefault
public AjaxRequestBuilder preventDefault()
-
getBuffer
public StringBuilder getBuffer()
-
build
public String build()
-
buildBehavior
public String buildBehavior(ClientBehaviorRenderingMode mode)
-
reset
public void reset()
-
-