Package org.primefaces
Class PrimeFaces.Ajax
java.lang.Object
org.primefaces.PrimeFaces.Ajax
- Enclosing class:
- PrimeFaces
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCallbackParam(String name, Object value) Add a parameter for ajax oncomplete client side callbacks.voidForces ignoreAutoUpdate.voidUpdates 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.
-
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- theUIComponents.
-
ignoreAutoUpdate
public void ignoreAutoUpdate()Forces ignoreAutoUpdate. May be used e.g. combined with server-side update viaPrimeFaces.current().ajax().update("xxx")
-