code: @Override
  	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
  		WMenuItem item = (WMenuItem) component;
  		XmlStringBuilder xml = renderContext.getWriter();
  
  		xml.appendTagOpen("ui:menuitem");
  		xml.appendAttribute("id", component.getId());
  		xml.appendOptionalAttribute("class", component.getHtmlClass());
  		xml.appendOptionalAttribute("track", component.isTracking(), "true");
  
  		if (item.isSubmit()) {
  			xml.appendAttribute("submit", "true");
  		} else {
  			xml.appendOptionalUrlAttribute("url", item.getUrl());
  			xml.appendOptionalAttribute("targetWindow", item.getTargetWindow());
  		}
  
  		xml.appendOptionalAttribute("disabled", item.isDisabled(), "true");
  		xml.appendOptionalAttribute("hidden", item.isHidden(), "true");
  		xml.appendOptionalAttribute("selected", item.isSelected(), "true");
  		xml.appendOptionalAttribute("role", getRole(item));
  		xml.appendOptionalAttribute("cancel", item.isCancel(), "true");
  		xml.appendOptionalAttribute("msg", item.getMessage());
  		xml.appendOptionalAttribute("toolTip", item.getToolTip());
  
  		if (item.isTopLevelItem()) {
  			xml.appendOptionalAttribute("accessKey", item.getAccessKeyAsString());
  		}
  
  		xml.appendClose();
  
  		item.getDecoratedLabel().paint(renderContext);
  
  		xml.appendEndTag("ui:menuitem");
  	}
docs: Paints the given WMenuItem.
  
  @param component the WMenuItem to paint.
  @param renderContext the RenderContext to paint to.