code: public static List<Integer> getCurrentRowIndex(final WComponent component) {
  		UIContext uic = UIContextHolder.getCurrent();
  		// Check have correct context
  		if (!(uic instanceof SubUIContext)) {
  			return null;
  		}
  
  		// Find the table
  		WTable table = WebUtilities.getAncestorOfClass(WTable.class, component);
  		if (table == null) {
  			return null;
  		}
  
  		int repeaterIdx = ((SubUIContext) uic).getRowIndex();
  		RowIdWrapper wrapper = table.getRepeater().getBeanList().get(repeaterIdx);
  		return wrapper.getRowIndex();
  	}
docs: This can be used by column components on a {@link WTable} to determine the current row index.
  
  @param component the column component
  @return the row index for the current row, or null if no row details