Class PrimeFaces.Ajax

java.lang.Object
org.primefaces.PrimeFaces.Ajax
Enclosing class:
PrimeFaces

public class PrimeFaces.Ajax extends Object
  • Constructor Details

    • Ajax

      public Ajax()
  • Method Details

    • 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 - the UIComponents.
    • ignoreAutoUpdate

      public void ignoreAutoUpdate()
      Forces ignoreAutoUpdate. May be used e.g. combined with server-side update via PrimeFaces.current().ajax().update("xxx")