code: private void paintAjaxTrigger(final WLink link, final XmlStringBuilder xml) {
  		AjaxTarget[] actionTargets = link.getActionTargets();
  
  		// Start tag
  		xml.appendTagOpen("ui:ajaxtrigger");
  		xml.appendAttribute("triggerId", link.getId());
  		xml.appendClose();
  
  		if (actionTargets != null && actionTargets.length > 0) {
  			// Targets
  			for (AjaxTarget target : actionTargets) {
  				xml.appendTagOpen("ui:ajaxtargetid");
  				xml.appendAttribute("targetId", target.getId());
  				xml.appendEnd();
  			}
  		} else {
  			// Target itself
  			xml.appendTagOpen("ui:ajaxtargetid");
  			xml.appendAttribute("targetId", link.getId());
  			xml.appendEnd();
  		}
  
  		// End tag
  		xml.appendEndTag("ui:ajaxtrigger");
  	}
docs: Paint the AJAX trigger if the link has an action.
  
  @param link the link component being rendered
  @param xml the XmlStringBuilder to paint to.