Exemplo n.º 1
0
  private boolean shouldRedirectToPage(IRequestCycle requestCycle) {
    if (update.containsPage()) {
      return true;
    }

    if (((WebRequest) requestCycle.getRequest()).isAjax() == false) {
      // the request was not sent by wicket-ajax.js - this can happen when an Ajax request was
      // intercepted with #redirectToInterceptPage() and then the original request is re-sent
      // by the browser on a subsequent #continueToOriginalDestination()
      return true;
    }

    return false;
  }