You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2012/11/19 17:54:13 UTC

[3/9] git commit: Remove unecessary method annotations

Remove unecessary method annotations


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/39abf3f4
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/39abf3f4
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/39abf3f4

Branch: refs/heads/5.4-js-rewrite
Commit: 39abf3f4278087ba310d7dbcaaf658ae11eccc20
Parents: 32e3714
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Sat Nov 17 18:02:57 2012 -0800
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Sat Nov 17 18:02:57 2012 -0800

----------------------------------------------------------------------
 .../apache/tapestry5/corelib/components/Tree.java  |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/39abf3f4/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Tree.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Tree.java b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Tree.java
index c718af7..b6ada1f 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Tree.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Tree.java
@@ -51,12 +51,6 @@ import java.util.List;
 public class Tree
 {
     /**
-     * Name of query parameter that stores the node id of the node being operated on
-     * (expanded, collapsed, etc.).
-     */
-    private static final String NODE_ID = "t:nodeid";
-
-    /**
      * The model that drives the tree, determining top level nodes and making revealing the overall structure of the
      * tree.
      */
@@ -271,7 +265,7 @@ public class Tree
         return resources.createEventLink("treeAction");
     }
 
-    Object onTreeAction(@RequestParameter(NODE_ID) String nodeId,
+    Object onTreeAction(@RequestParameter("t:nodeid") String nodeId,
                         @RequestParameter("t:action") String action)
     {
         if (action.equalsIgnoreCase("expand"))
@@ -311,7 +305,7 @@ public class Tree
         return new RenderNodes(container.getChildren());
     }
 
-    Object doMarkExpanded(@RequestParameter(NODE_ID) String nodeId)
+    Object doMarkExpanded(String nodeId)
     {
         expansionModel.markExpanded(model.getById(nodeId));
 
@@ -319,7 +313,7 @@ public class Tree
     }
 
 
-    Object doMarkCollapsed(@RequestParameter(NODE_ID) String nodeId)
+    Object doMarkCollapsed(String nodeId)
     {
         expansionModel.markCollapsed(model.getById(nodeId));