Package org.primefaces
Class PrimeFaces.Ajax
- java.lang.Object
-
- org.primefaces.PrimeFaces.Ajax
-
- Enclosing class:
- PrimeFaces
public class PrimeFaces.Ajax extends Object
-
-
Constructor Summary
Constructors Constructor Description Ajax()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCallbackParam(String name, Object value)Add a parameter for ajax oncomplete client side callbacks.voidignoreAutoUpdate()Forces ignoreAutoUpdate.voidupdate(String... expressions)Updates all components with the given expressions or clientIds.voidupdate(Collection<String> expressions)Updates all components with the given expressions or clientIds.voidupdate(javax.faces.component.UIComponent... components)Updates all the given components.
-
-
-
Method Detail
-
addCallbackParam
public void addCallbackParam(String name, Object value)
Add a parameter for ajax oncomplete client side callbacks. Value will be serialized to json. Currently supported values are primitives, POJOs, JSONObject and JSONArray.- Parameters:
name- name of the parameter.value- value of the parameter.
-
update
public void update(Collection<String> expressions)
Updates all components with the given expressions or clientIds.ignoreAutoUpdate()my be used additionally to ignoreAutoUpdate.- Parameters:
expressions- a list of expressions or clientIds.
-
update
public void update(String... expressions)
Updates all components with the given expressions or clientIds.ignoreAutoUpdate()my be used additionally to ignoreAutoUpdate.- Parameters:
expressions- a list of expressions or clientIds.
-
update
public void update(javax.faces.component.UIComponent... components)
Updates all the given components.ignoreAutoUpdate()my be used additionally to ignoreAutoUpdate.- Parameters:
components- theUIComponents.
-
ignoreAutoUpdate
public void ignoreAutoUpdate()
Forces ignoreAutoUpdate. May be used e.g. combined with server-side update viaPrimeFaces.current().ajax().update("xxx")
-
-