Repository: wicket Updated Branches: refs/heads/master 3734a1a0b -> c45af373c
Improve the javadoc of Location.Blob that the content disposition should be ATTACHMENT. Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/c45af373 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/c45af373 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/c45af373 Branch: refs/heads/master Commit: c45af373ce67039608d809057fc4ea9e590c98c5 Parents: 3734a1a Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Wed Apr 12 22:37:10 2017 +0200 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Wed Apr 12 22:37:10 2017 +0200 ---------------------------------------------------------------------- .../org/apache/wicket/extensions/ajax/AjaxDownload.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/c45af373/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/AjaxDownload.java ---------------------------------------------------------------------- diff --git a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/AjaxDownload.java b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/AjaxDownload.java index e741fd3..7815121 100644 --- a/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/AjaxDownload.java +++ b/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/AjaxDownload.java @@ -73,7 +73,8 @@ public class AjaxDownload extends AbstractDefaultAjaxBehavior public enum Location { /** - * The resource will be downloaded into a blob. + * The resource will be downloaded into a blob, the resource has to be a + * {@link ContentDisposition#ATTACHMENT}.. * <p> * This is recommended for modern browsers. */ @@ -90,12 +91,12 @@ public class AjaxDownload extends AbstractDefaultAjaxBehavior IFrame, /** - * The resource will be downloaded by changing the location of the current DOM document, the resource has to be a - * {@link ContentDisposition#ATTACHMENT}. + * The resource will be downloaded by changing the location of the current DOM document, + * the resource has to be a {@link ContentDisposition#ATTACHMENT}. * <p> * Note: This will trigger JavaScript <em>unload</em> event on the page! - * Does not support {@link AjaxDownload#onDownloadFailed(AjaxRequestTarget)} callback, i.e. it is not possible to detect - * when the download has failed! + * Does not support {@link AjaxDownload#onDownloadFailed(AjaxRequestTarget)} callback, + * i.e. it is not possible to detect when the download has failed! */ SameWindow,
