myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r803411 - /myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java
Date Wed, 12 Aug 2009 08:24:31 GMT
Author: lofwyr
Date: Wed Aug 12 08:24:31 2009
New Revision: 803411

URL: http://svn.apache.org/viewvc?rev=803411&view=rev
Log:
demo: fix expanded nodes

Modified:
    myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java

Modified: myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java?rev=803411&r1=803410&r2=803411&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java
(original)
+++ myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java
Wed Aug 12 08:24:31 2009
@@ -21,6 +21,7 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.myfaces.tobago.context.ResourceManagerUtil;
 import org.apache.myfaces.tobago.example.demo.jsp.JspFormatter;
+import org.apache.myfaces.tobago.model.TreePath;
 import org.apache.myfaces.tobago.model.TreeState;
 
 import javax.faces.context.ExternalContext;
@@ -91,10 +92,10 @@
     tree.add(reference);
 
     state = new TreeState();
-    state.expand(tree, 1);
-    state.expand(overview, 1);
-    state.expand(bestPractice, 1);
-    state.setMarker(overview);
+    state.getExpanded().add(new TreePath(0));
+    state.getExpanded().add(new TreePath(0,0));
+    state.getExpanded().add(new TreePath(0,1));
+    state.getMarked().add(new TreePath(0,0));
   }
 
   public String navigate() {



Mime
View raw message