code: public void setRowsPerPage(final int rowsPerPage) {
  		List<Integer> rowsOptions = getRowsPerPageOptions();
  		if (rowsOptions == null) {
  			if (rowsPerPage < 1) {
  				throw new IllegalArgumentException(
  						"Rows per page must be greater than 0, but got: " + rowsPerPage);
  			}
  		} else if (!rowsOptions.contains(rowsPerPage)) {
  			throw new IllegalArgumentException(
  					"Rows per page is not a valid rows per page option, got: " + rowsPerPage);
  		}
  		getOrCreateComponentModel().rowsPerPage = rowsPerPage;
  	}
docs: Sets the number of rows to display per page when pagination is enabled.
  <p>
  If rows per page options have been set, then the value must be a valid option, which can include zero to indicate
  show all rows, otherwise the value must be greater than zero.
  </p>
  
  @param rowsPerPage the rowsPerPage to set