code: public void setRowsPerPageOptions(final List<Integer> rowsPerPageOptions) {
  		WTableComponentModel model = getOrCreateComponentModel();
  		if (rowsPerPageOptions == null || rowsPerPageOptions.isEmpty()) {
  			model.rowsPerPageOptions = null;
  			// If the rows per page is currently 0, reset it to the default value
  			if (model.rowsPerPage == 0) {
  				model.rowsPerPage = DEFAULT_ROWS;
  			}
  		} else {
  			// Validate options
  			for (Integer rows : rowsPerPageOptions) {
  				if (rows == null || rows < 0) {
  					throw new IllegalArgumentException(
  							"Rows per page option cannot be less than 0 or null, got: " + rows);
  				}
  			}
  			model.rowsPerPageOptions = new ArrayList<>(rowsPerPageOptions);
  			// If the current rows per page is not a valid option, default to the first option
  			if (!rowsPerPageOptions.contains(model.rowsPerPage)) {
  				model.rowsPerPage = rowsPerPageOptions.get(0);
  			}
  		}
  	}
docs: Set the rows per page options.
  <p>
  If the current value of {@link #getRowsPerPage()} is not a valid option, it will be set to the first option.
  </p>
  
  @param rowsPerPageOptions the rows per page options