var ajax = new com.ibm.xsp.ajax.AjaxUtil(); if( ajax.isAjaxPartialRefresh(facesContext) == true){ return "AJAX"; }else{ return "NOT AJAX!" }