You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2014/11/26 13:54:25 UTC

[2/2] wicket git commit: WICKET-5772 added javadoc

WICKET-5772 added javadoc


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

Branch: refs/heads/wicket-6.x
Commit: ae76a350f2646e5246bebc3b38ea938ebba9fd43
Parents: 1c1c151
Author: Sven Meier <sv...@apache.org>
Authored: Wed Nov 26 13:53:52 2014 +0100
Committer: Sven Meier <sv...@apache.org>
Committed: Wed Nov 26 13:53:52 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/wicket/model/LoadableDetachableModel.java     | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/ae76a350/wicket-core/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java b/wicket-core/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java
index 2a85694..4ef0cf6 100644
--- a/wicket-core/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java
+++ b/wicket-core/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java
@@ -110,6 +110,9 @@ public abstract class LoadableDetachableModel<T> implements IModel<T>
 	}
 
 	/**
+	 * Note: If {@link #load()} fails with an exception then {@code null} is kept as the attached
+	 * value. Wicket 7.x improves this by staying detached instead, see WICKET-5772.
+	 * 
 	 * @see org.apache.wicket.model.IModel#getObject()
 	 */
 	@Override