code: private void paintRowSelectionElement(final WDataTable table, final XmlStringBuilder xml) {
  		boolean multiple = table.getSelectMode() == SelectMode.MULTIPLE;
  
  		xml.appendTagOpen("ui:rowselection");
  		xml.appendOptionalAttribute("multiple", multiple, "true");
  
  		if (multiple) {
  			switch (table.getSelectAllMode()) {
  				case CONTROL:
  					xml.appendAttribute("selectAll", "control");
  					break;
  				case TEXT:
  					xml.appendAttribute("selectAll", "text");
  					break;
  				case NONE:
  					break;
  				default:
  					throw new SystemException("Unknown select-all mode: " + table.
  							getSelectAllMode());
  			}
  		}
  
  		xml.appendOptionalAttribute("groupName", table.getSelectGroup());
  		xml.appendEnd();
  	}
docs: Paint the rowSelection aspects of the WDataTable.
  @param table the WDataTable being rendered
  @param xml the string builder in use