You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by ad...@apache.org on 2016/03/30 15:44:19 UTC

wicket git commit: Minor fixes to user guide

Repository: wicket
Updated Branches:
  refs/heads/master 502e3e9f1 -> e8f7cc81c


Minor fixes to user guide


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

Branch: refs/heads/master
Commit: e8f7cc81c8ebcbda8cbcdd669c725f39e7e164da
Parents: 502e3e9
Author: Andrea Del Bene <ad...@apache.org>
Authored: Wed Mar 30 15:43:38 2016 +0200
Committer: Andrea Del Bene <ad...@apache.org>
Committed: Wed Mar 30 15:43:38 2016 +0200

----------------------------------------------------------------------
 wicket-user-guide/src/docs/guide/resources/resources_8.gdoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/e8f7cc81/wicket-user-guide/src/docs/guide/resources/resources_8.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/resources/resources_8.gdoc b/wicket-user-guide/src/docs/guide/resources/resources_8.gdoc
index eb7c255..7471cd8 100644
--- a/wicket-user-guide/src/docs/guide/resources/resources_8.gdoc
+++ b/wicket-user-guide/src/docs/guide/resources/resources_8.gdoc
@@ -1,4 +1,4 @@
-Some web developers prefer to put their <script> tags at the end of page body instead of inside the <head> tags:
+Some web developers prefer to put their <script> tags at the end of page body and not inside the <head> tags:
 
 {code:html}
 
@@ -19,7 +19,7 @@ Some web developers prefer to put their <script> tags at the end of page body in
 {code}
 
 
-In Wicket we can achieve this result providing a custom @IHeaderResponseDecorator@ to a our application and using Wicket tag <wicket:container/> to indicate where we want to render our scripts inside the page. Interface @IHeaderResponseDecorator@ defines method @IHeaderResponse decorate(IHeaderResponse response)@ which allows to decorate or add funtionalities to Wicket @IHeaderResponse@. Our custom @IHeaderResponseDecorator@ can be registered in the application with method @setHeaderResponseDecorator@. Anytime Wicket creates an instance of @IHeaderResponse@, it will call the registered @IHeaderResponseDecorator@ to decorate the header response.
+In Wicket we can achieve this result providing a custom @IHeaderResponseDecorator@ to a our application and using Wicket tag <wicket:container/> to indicate where we want to render our scripts inside the page. Interface @IHeaderResponseDecorator@ defines method @IHeaderResponse decorate(IHeaderResponse response)@ which allows to decorate or add functionalities to Wicket @IHeaderResponse@. Our custom @IHeaderResponseDecorator@ can be registered in the application with method @setHeaderResponseDecorator@. Anytime Wicket creates an instance of @IHeaderResponse@, it will call the registered @IHeaderResponseDecorator@ to decorate the header response.
 
 In the example project @ScriptInsideBody@ we can find a custom @IHeaderResponseDecorator@ that renders CSS into the usual <head> tag and put JavaScricpt header items into a specific container (tag <wicket:container/>)
 Wicket already comes with class @JavaScriptFilteredIntoFooterHeaderResponse@ which wraps a @IHeaderResponse@ and renders in a given container all the instances of @JavaScriptHeaderItem@.