/**
   * Renders the page link. Add the separator if not the last page link
   *
   * @see Loop#renderItem(org.apache.wicket.markup.html.list.LoopItem)
   */
  @Override
  protected void renderItem(final LoopItem loopItem) {
    // Call default implementation
    super.renderItem(loopItem);

    // Add separator if not last page
    if (separator != null && (loopItem.getIndex() != getIterations() - 1)) {
      getResponse().write(separator);
    }
  }
  @Override
  protected void onConfigure() {
    super.onConfigure();
    setDefaultModel(new Model<Integer>((int) Math.max(Integer.MAX_VALUE, pageable.getPageCount())));
    // PagingNavigation itself (as well as the PageableListView)
    // may have pages.

    // The index of the first page link depends on the PageableListView's
    // page currently printed.
    setStartIndex();
  }