org.primefaces.util
Class AjaxRequestBuilder

java.lang.Object
  extended by org.primefaces.util.AjaxRequestBuilder

public class AjaxRequestBuilder
extends Object

Helper to generate javascript code of an ajax call


Field Summary
protected  StringBuilder buffer
           
 
Constructor Summary
AjaxRequestBuilder()
           
 
Method Summary
 AjaxRequestBuilder async(boolean async)
           
 String build()
           
 String buildBehavior()
           
 AjaxRequestBuilder event(String event)
           
 AjaxRequestBuilder form(String form)
           
 StringBuilder getBuffer()
           
 AjaxRequestBuilder global(boolean global)
           
 AjaxRequestBuilder oncomplete(String oncomplete)
           
 AjaxRequestBuilder onerror(String onerror)
           
 AjaxRequestBuilder onstart(String onstart)
           
 AjaxRequestBuilder onsuccess(String onsuccess)
           
 AjaxRequestBuilder params(javax.faces.component.UIComponent component)
           
 AjaxRequestBuilder partialSubmit(boolean value, boolean partialSubmitSet)
           
 AjaxRequestBuilder passParams()
           
 AjaxRequestBuilder preventDefault()
           
 AjaxRequestBuilder process(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String ids)
           
 AjaxRequestBuilder source(String source)
           
 AjaxRequestBuilder update(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String ids)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected StringBuilder buffer
Constructor Detail

AjaxRequestBuilder

public AjaxRequestBuilder()
Method Detail

source

public AjaxRequestBuilder source(String source)

form

public AjaxRequestBuilder form(String form)

process

public AjaxRequestBuilder process(javax.faces.context.FacesContext context,
                                  javax.faces.component.UIComponent component,
                                  String ids)

update

public AjaxRequestBuilder update(javax.faces.context.FacesContext context,
                                 javax.faces.component.UIComponent component,
                                 String ids)

event

public AjaxRequestBuilder event(String event)

async

public AjaxRequestBuilder async(boolean async)

global

public AjaxRequestBuilder global(boolean global)

partialSubmit

public AjaxRequestBuilder partialSubmit(boolean value,
                                        boolean partialSubmitSet)

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)

passParams

public AjaxRequestBuilder passParams()

preventDefault

public AjaxRequestBuilder preventDefault()

getBuffer

public StringBuilder getBuffer()

build

public String build()

buildBehavior

public String buildBehavior()


Copyright © 2013. All Rights Reserved.