[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action ...

Christian Bauer christian at hibernate.org
Tue Mar 20 14:40:32 EDT 2007


  User: cbauer  
  Date: 07/03/20 14:40:32

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/action  
                        NodeBrowser.java NodeHome.java
  Log:
  Session timeout popup notice
  
  Revision  Changes    Path
  1.5       +2 -3      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/NodeBrowser.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NodeBrowser.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/NodeBrowser.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- NodeBrowser.java	20 Mar 2007 02:38:15 -0000	1.4
  +++ NodeBrowser.java	20 Mar 2007 18:40:32 -0000	1.5
  @@ -2,6 +2,7 @@
   
   import org.jboss.seam.annotations.*;
   import org.jboss.seam.ScopeType;
  +import org.jboss.seam.Component;
   import org.jboss.seam.core.Conversation;
   import org.jboss.seam.security.Identity;
   import org.jboss.seam.wiki.core.dao.NodeDAO;
  @@ -186,9 +187,7 @@
   
           // Fall back to default document
           if (currentDirectory == null) {
  -            currentDocument = nodeDAO.findDocument(globalPrefs.getDefaultDocumentId());
  -            if (currentDocument == null)
  -                throw new RuntimeException("Couldn't find default document with id '" + globalPrefs.getDefaultDocumentId() +"'");
  +            currentDocument = (Document)Component.getInstance("wikiStart");
               currentDirectory = currentDocument.getParent();
           }
   
  
  
  
  1.7       +1 -0      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/NodeHome.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NodeHome.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/NodeHome.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- NodeHome.java	20 Mar 2007 02:38:15 -0000	1.6
  +++ NodeHome.java	20 Mar 2007 18:40:32 -0000	1.7
  @@ -187,6 +187,7 @@
       }
   
       public void parentDirectorySelected(NodeSelectedEvent nodeSelectedEvent) {
  +        // TODO: There is really no API in RichFaces to get the selection! Already shouted at devs...
           TreeRowKey rowkey = (TreeRowKey)((HtmlTree)nodeSelectedEvent.getSource()).getRowKey();
           Iterator pathIterator = rowkey.iterator();
           Long dirId = null;
  
  
  



More information about the jboss-cvs-commits mailing list