Package org.primefaces
Class PrimeFaces.Ajax
java.lang.Object
org.primefaces.PrimeFaces.Ajax
- Enclosing class:
- PrimeFaces
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCallbackParam
(String name, Object value) Add a parameter for ajax oncomplete client side callbacks.void
Forces ignoreAutoUpdate.void
Updates all components with the given expressions or clientIds.void
update
(Collection<String> expressions) Updates all components with the given expressions or clientIds.void
update
(javax.faces.component.UIComponent... components) Updates all the given components.
-
Constructor Details
-
Ajax
public Ajax()
-
-
Method Details
-
addCallbackParam
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
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
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
- theUIComponent
s.
-
ignoreAutoUpdate
public void ignoreAutoUpdate()Forces ignoreAutoUpdate. May be used e.g. combined with server-side update viaPrimeFaces.current().ajax().update("xxx")
-