code: @Override
  	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
  		WAjaxControl ajaxControl = (WAjaxControl) component;
  		XmlStringBuilder xml = renderContext.getWriter();
  		WComponent trigger = ajaxControl.getTrigger() == null ? ajaxControl : ajaxControl.
  				getTrigger();
  		int delay = ajaxControl.getDelay();
  
  		if (ajaxControl.getTargets() == null || ajaxControl.getTargets().isEmpty()) {
  			return;
  		}
  
  		// Start tag
  		xml.appendTagOpen("ui:ajaxtrigger");
  		xml.appendAttribute("triggerId", trigger.getId());
  		xml.appendOptionalAttribute("loadOnce", ajaxControl.isLoadOnce(), "true");
  		xml.appendOptionalAttribute("delay", delay > 0, delay);
  		xml.appendClose();
  
  		// Targets
  		for (AjaxTarget target : ajaxControl.getTargets()) {
  			xml.appendTagOpen("ui:ajaxtargetid");
  			xml.appendAttribute("targetId", target.getId());
  			xml.appendEnd();
  		}
  
  		// End tag
  		xml.appendEndTag("ui:ajaxtrigger");
  	}
docs: Paints the given AjaxControl.
  
  @param component the AjaxControl to paint
  @param renderContext the RenderContext to paint to