myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r548264 - /myfaces/tobago/trunk/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/Navigation.java
Date Mon, 18 Jun 2007 08:59:08 GMT
Author: lofwyr
Date: Mon Jun 18 01:59:07 2007
New Revision: 548264

URL: http://svn.apache.org/viewvc?view=rev&rev=548264
Log:
keep reference menu closed at startup

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?view=diff&rev=548264&r1=548263&r2=548264
==============================================================================
--- 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
Mon Jun 18 01:59:07 2007
@@ -17,20 +17,20 @@
  * limitations under the License.
  */
 
-import org.apache.myfaces.tobago.model.TreeState;
-import org.apache.myfaces.tobago.context.ResourceManagerUtil;
-import org.apache.myfaces.tobago.example.demo.jsp.JspFormatter;
 import org.apache.commons.logging.Log;
 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.TreeState;
 
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.faces.context.FacesContext;
 import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
 import javax.servlet.http.HttpServletResponse;
+import javax.swing.tree.DefaultMutableTreeNode;
+import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
 import java.io.PrintWriter;
-import java.io.IOException;
 import java.util.Enumeration;
 
 /*
@@ -88,7 +88,9 @@
     tree.add(reference);
 
     state = new TreeState();
-    state.expand(tree, 2);
+    state.expand(tree, 1);
+    state.expand(overview, 1);
+    state.expand(bestPractice, 1);
     state.setMarker(overview);
   }
 



Mime
View raw message