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 2015/03/30 17:09:47 UTC

wicket git commit: fix for pdf and added media resources

Repository: wicket
Updated Branches:
  refs/heads/grails-maven-integration c1da4aefc -> 539468a24


fix for pdf and added media resources


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

Branch: refs/heads/grails-maven-integration
Commit: 539468a241d7a8ecb6c81b4a8384b18b6f6a3afb
Parents: c1da4ae
Author: Andrea Del Bene <ad...@apache.org>
Authored: Mon Mar 30 17:09:14 2015 +0200
Committer: Andrea Del Bene <ad...@apache.org>
Committed: Mon Mar 30 17:09:14 2015 +0200

----------------------------------------------------------------------
 .../docs/guide/requestProcessing/requestProcessing_5.gdoc | 10 +++++-----
 .../src/docs/guide/resources/resources_3.gdoc             | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/539468a2/wicket-user-guide/src/docs/guide/requestProcessing/requestProcessing_5.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/requestProcessing/requestProcessing_5.gdoc b/wicket-user-guide/src/docs/guide/requestProcessing/requestProcessing_5.gdoc
index 58d5c54..42c06cb 100644
--- a/wicket-user-guide/src/docs/guide/requestProcessing/requestProcessing_5.gdoc
+++ b/wicket-user-guide/src/docs/guide/requestProcessing/requestProcessing_5.gdoc
@@ -10,11 +10,11 @@ We can also manually set if Wicket should display the exception with @ExceptionE
 
 {code}
 //show default developer page
-getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_EXCEPTION_PAGE);
+getExceptionSettings().setUnexpectedExceptionDisplay( IExceptionSettings.SHOW_EXCEPTION_PAGE );
 //show internal error page
-getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
+getExceptionSettings().setUnexpectedExceptionDisplay( IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE );
 //show no exception page when an unexpected exception is thrown
-getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_NO_EXCEPTION_PAGE);
+getExceptionSettings().setUnexpectedExceptionDisplay( IExceptionSettings.SHOW_NO_EXCEPTION_PAGE );
 {code}
 
 Developers can also decide to use a custom exception mapper instead of @DefaultExceptionMapper@. To do this we must override @Application@'s method @getExceptionMapperProvider@:
@@ -31,5 +31,5 @@ The method returns an instance of @org.apache.wicket.util.IProvider@ that should
 
 h3. Ajax requests
 
-To control the behavior in Ajax requests the application may use @org.apache.wicket.settings.IExceptionSettings#setAjaxErrorHandlingStrategy(IExceptionSettings.AjaxErrorStrategy)@. By default if an error occurs during the 
-processing of an Ajax request Wicket will render the configured error page. By configuring @org.apache.wicket.settings.IExceptionSettings.AjaxErrorStrategy#INVOKE_FAILURE_HANDLER@ as the default strategy the application will call the JavaScript @onFailure@ callback(s) instead.
\ No newline at end of file
+To control the behavior in Ajax requests the application may use @org.apache.wicket.settings.IExceptionSettings#  setAjaxErrorHandlingStrategy(IExceptionSettings.AjaxErrorStrategy)@. By default if an error occurs during the 
+processing of an Ajax request Wicket will render the configured error page. By configuring @org.apache.wicket.settings.IExceptionSettings.  AjaxErrorStrategy#INVOKE_FAILURE_HANDLER@ as the default strategy the application will call the JavaScript @onFailure@ callback(s) instead.

http://git-wip-us.apache.org/repos/asf/wicket/blob/539468a2/wicket-user-guide/src/docs/guide/resources/resources_3.gdoc
----------------------------------------------------------------------
diff --git a/wicket-user-guide/src/docs/guide/resources/resources_3.gdoc b/wicket-user-guide/src/docs/guide/resources/resources_3.gdoc
index 37e5c21..e996b36 100644
--- a/wicket-user-guide/src/docs/guide/resources/resources_3.gdoc
+++ b/wicket-user-guide/src/docs/guide/resources/resources_3.gdoc
@@ -125,23 +125,23 @@ The component @org.apache.wicket.markup.html.image.Picture@ is used to provide a
 ...
 {code}
 
-h3. Media tags - specialized resource references
+h3. Media tags - resource references with content range support
 
-Since Wicket 7.0.0 there is a very specialized form of a ResourceReference - the MediaStreamingResourceReference which is used for videos / audio tags. This ResourceReference supports the Range / Content-Range http headers. The Range header allows the client to only request a specific byte range of the resource. The server provides the Content-Range and tells the client which bytes are going to be send.
+Since Wicket 7.0.0 the PackageResource and the PackageResourceReference support "Range" HTTP header for the request and "Content-Range" / "Accept-Range" HTTP headers for the response, which are used for videos / audio tags. The "Range" header allows the client to only request a specific byte range of the resource. The server provides the "Content-Range" and tells the client which bytes are going to be send.
 
 *HTML:*
 {code:html}
 ...
-	 <video wicket:id="video" />
+     <video wicket:id="video" />
 ...
 {code}
 
 *Java Code:*
 {code}
 ...
-	Video video = new Video("video", new MediaStreamingResourceReference(getClass(),"video.mp4"));
+    Video video = new Video("video", new PackageResourceReference(getClass(),"video.mp4"));
 ...
-{code}
+{code} 
 
 h3. Using package resources with tag <wicket:link>