Repository: wicket
Updated Branches:
  refs/heads/master bf1e70aec -> 2b28c7fcc


WICKET-6194 Fixed exception message / guide information

Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/2b28c7fc
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/2b28c7fc
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/2b28c7fc

Branch: refs/heads/master
Commit: 2b28c7fcc0d7f6809a4fb93927338e0da4a47276
Parents: bf1e70a
Author: Tobias Soloschenko <[email protected]>
Authored: Fri Aug 12 21:36:48 2016 +0200
Committer: Tobias Soloschenko <[email protected]>
Committed: Fri Aug 12 21:37:17 2016 +0200

----------------------------------------------------------------------
 .../org/apache/wicket/http2/markup/head/PushHeaderItem.java    | 6 +++---
 wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc    | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/2b28c7fc/wicket-experimental/wicket-http2/wicket-http2-core/src/main/java/org/apache/wicket/http2/markup/head/PushHeaderItem.java
----------------------------------------------------------------------
diff --git 
a/wicket-experimental/wicket-http2/wicket-http2-core/src/main/java/org/apache/wicket/http2/markup/head/PushHeaderItem.java
 
b/wicket-experimental/wicket-http2/wicket-http2-core/src/main/java/org/apache/wicket/http2/markup/head/PushHeaderItem.java
index 2238c61..4f81b7e 100644
--- 
a/wicket-experimental/wicket-http2/wicket-http2-core/src/main/java/org/apache/wicket/http2/markup/head/PushHeaderItem.java
+++ 
b/wicket-experimental/wicket-http2/wicket-http2-core/src/main/java/org/apache/wicket/http2/markup/head/PushHeaderItem.java
@@ -113,12 +113,12 @@ public class PushHeaderItem extends HeaderItem
                        !(pageResponse instanceof WebResponse))
                {
                        throw new WicketRuntimeException(
-                               "Please hand over the web page, the web 
response and the web request to the push header item like \"new 
PushHeaderItem(this, yourWebPageReponse, yourWebPageRequest)\" - " +
-                                       "The webPageResponse / webPageRequest 
can be obtained via \"getRequestCycle().getResponse()\" and placed into the 
page as field " +
+                               "Please hand over the web page, the web request 
and the web response to the push header item like \"new PushHeaderItem(this, 
yourWebPageRequest, yourWebPageResponse)\" - " +
+                                       "The webPageResponse / webPageRequest 
can be obtained via \"getRequestCycle().getRequest()\" / 
\"getRequestCycle().getResponse()\" and placed into the page as fields " +
                                        "\"private transient Response 
webPageResponse;\" / \"private transient Request webPageRequest;\"");
                }
-               this.pageWebResponse = (WebResponse)pageResponse;
                this.pageWebRequest = (WebRequest)pageRequest;
+               this.pageWebResponse = (WebResponse)pageResponse;
                this.page = page;
        }
 

http://git-wip-us.apache.org/repos/asf/wicket/blob/2b28c7fc/wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc 
b/wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc
index 59d53fe..03af6d4 100644
--- a/wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc
+++ b/wicket-user-guide/src/docs/guide/http2push/http2push_1.gdoc
@@ -45,7 +45,7 @@ public class HTTP2Page extends WebPage
                super.renderHead(response);
                TestResourceReference instance = 
TestResourceReference.getInstance();
                response.render(CssHeaderItem.forReference(instance));
-               response.render(new PushHeaderItem(this, webPageResponse, 
webPageRequest)
+               response.render(new PushHeaderItem(this, webPageRequest, 
webPageResponse)
                    .push(Arrays.asList(new PushItem(instance))));
        }
 

Reply via email to