Search code examples
jsfjsf-2primefaces

ajax="false" vs process="@this"


I'm get confused with this 2 concepts ajax="false" and process="@this". Is the resulting view the same?, is there any order of execution?, will both execute the validation phase? something else should I care about?


Solution

  • ajax="false" means that your UICommand e.g. <p:commandButton> will perform a request/response process without using ajax. This is an attribute for PrimeFaces UICommands.

    process="@this" means that only the current component value will be send to the server instead of sending the data from the whole <h:form>. This attribute belongs to PrimeFaces components that have ajax functionality embedded. It is similar to execute attribue in <f:ajax> from JSF.

    More info: