I need to distinguish between Ajax and not Ajax requests. I didn't check it yet, but the question is whether the following code works with PrimeFaces
Code: Select all
FacesContext fc = FacesContext.getCurrentInstance();
boolean isAjax = fc.getPartialViewContext().isAjaxRequest();
if (isAjax) {
....
}
Code: Select all
javax.faces.partial.ajax
javax.faces.source
javax.faces.partial.execute
javax.faces.partial.render
Code: Select all
ajaxSource j_id8:j_id9
primefacesAjaxRequest true
primefacesPartialProcess j_id8:j_id9
Thanks.
Oleg.