code: private Object executeAjaxCalls(FacesContext context, String command) {
  		Object result = null;
  		int pos = command.indexOf("ajax:");
  		while (pos >= 0) { // the command may contain several AJAX and
  							// JavaScript calls, in arbitrary order
  
  			String el = command.substring(pos + "ajax:".length());
  			if (el.contains("javascript:")) {
  				int end = el.indexOf("javascript:");
  				el = el.substring(0, end);
  			}
  			el = el.trim();
  			while (el.endsWith(";")) {
  				el = el.substring(0, el.length() - 1).trim();
  			}
  
  			if (context.isProjectStage(ProjectStage.Development)) {
  				checkELSyntax(el, context.getELContext());
  			}
  			ValueExpression vex = evalAsValueExpression("#{" + el + "}");
  			try {
  				result = vex.getValue(context.getELContext());
  			} catch (javax.el.PropertyNotFoundException ex) {
  				MethodExpression mex = evalAsMethodExpression("#{" + el + "}");
  				result = mex.invoke(context.getELContext(), null);
  			}
  
  			// look for the next AJAX call (if any)
  			pos = command.indexOf("ajax:", pos + 1);
  		}
  		return result;
  	}
docs: Execute the ajax call when ajax syntax was found ajax:<command>
  
  @param context
  @param command
  @return