This is an automated email from the ASF dual-hosted git repository.
svenmeier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/master by this push:
new 35fa021 updated docs for WICKET-6729
35fa021 is described below
commit 35fa021ce5e54ed14e299ae774711ad5b34af008
Author: Sven Meier <[email protected]>
AuthorDate: Thu Jul 30 09:58:42 2020 +0200
updated docs for WICKET-6729
---
wicket-user-guide/src/main/asciidoc/resources/resources_8.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wicket-user-guide/src/main/asciidoc/resources/resources_8.adoc
b/wicket-user-guide/src/main/asciidoc/resources/resources_8.adoc
index 7a8f61d..6ac1255 100644
--- a/wicket-user-guide/src/main/asciidoc/resources/resources_8.adoc
+++ b/wicket-user-guide/src/main/asciidoc/resources/resources_8.adoc
@@ -21,7 +21,7 @@ Some web developers prefer to put their <script> tags at the
end of page body an
----
-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
_setHeaderRes [...]
+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 via the method
_getHeader [...]
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_.
@@ -34,7 +34,7 @@ The following code is taken from the Application class of the
project:
@Override
public void init()
{
- setHeaderResponseDecorator(response -> new ResourceAggregator(new
JavaScriptFilteredIntoFooterHeaderResponse(response, "footer-container")));
+ getHeaderResponseDecorators().add(response -> new
JavaScriptFilteredIntoFooterHeaderResponse(response, "footer-container"));
}
----