Repository: wicket
Updated Branches:
  refs/heads/master 2f9194a1e -> e15993c09


simplified example: wantAutomaticUpdate returns true anyway and is not 
overriden in CheckGroupSelector


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

Branch: refs/heads/master
Commit: 2ab3e0ae5e41f286d72a510f827154f9cd7acf74
Parents: 2f9194a
Author: Sven Meier <[email protected]>
Authored: Wed Sep 20 23:01:11 2017 +0200
Committer: Sven Meier <[email protected]>
Committed: Wed Sep 20 23:04:56 2017 +0200

----------------------------------------------------------------------
 .../examples/compref/CheckBoxSelectorPage.java  | 26 ++------------------
 1 file changed, 2 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/2ab3e0ae/wicket-examples/src/main/java/org/apache/wicket/examples/compref/CheckBoxSelectorPage.java
----------------------------------------------------------------------
diff --git 
a/wicket-examples/src/main/java/org/apache/wicket/examples/compref/CheckBoxSelectorPage.java
 
b/wicket-examples/src/main/java/org/apache/wicket/examples/compref/CheckBoxSelectorPage.java
index 6e93db8..aa1bcd9 100644
--- 
a/wicket-examples/src/main/java/org/apache/wicket/examples/compref/CheckBoxSelectorPage.java
+++ 
b/wicket-examples/src/main/java/org/apache/wicket/examples/compref/CheckBoxSelectorPage.java
@@ -58,32 +58,10 @@ public class CheckBoxSelectorPage extends WicketExamplePage
                checkgroup.add(new Check<>("check3", Model.of(3)));
                checkgroup.add(new Check<>("check4", Model.of(4)));
                // one selector inside the checkgroup...
-               checkgroup.add(new CheckGroupSelector("groupSelector")
-               {
-                       private static final long serialVersionUID = 1L;
-
-                       @Override
-                       protected boolean wantAutomaticUpdate()
-                       {
-                               return true; // override again to enable auto 
update. in
-                                                               // 
CheckGroupSelector it is disabled for
-                                                               // backwards 
compatibility.
-                       }
-               });
+               checkgroup.add(new CheckGroupSelector("groupSelector"));
 
                // ...and one selector outside the checkgroup
-               form.add(new CheckGroupSelector("groupSelectorOutside", 
checkgroup)
-               {
-                       private static final long serialVersionUID = 1L;
-
-                       @Override
-                       protected boolean wantAutomaticUpdate()
-                       {
-                               return true; // override again to enable auto 
update. in
-                                                               // 
CheckGroupSelector it is disabled for
-                                                               // backwards 
compatibility.
-                       }
-               });
+               form.add(new CheckGroupSelector("groupSelectorOutside", 
checkgroup));
                final CheckBoxMultipleChoice<Integer> choice = new 
CheckBoxMultipleChoice<>(
                        "choice", Model.ofList(new ArrayList<>()), 
Arrays.asList(1, 2, 3, 4));
                form.add(choice);

Reply via email to