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

Christian Bauer christian at hibernate.org
Sun Aug 26 23:09:19 EDT 2007


  User: cbauer  
  Date: 07/08/26 23:09:19

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/action 
                        DirectoryHome.java
  Log:
  Feed/directory descriptions
  
  Revision  Changes    Path
  1.15      +3 -1      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/DirectoryHome.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DirectoryHome.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/DirectoryHome.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- DirectoryHome.java	25 Aug 2007 17:59:24 -0000	1.14
  +++ DirectoryHome.java	27 Aug 2007 03:09:19 -0000	1.15
  @@ -102,11 +102,12 @@
       @Transactional
       private void createOrRemoveFeed() {
           if (hasFeed && getInstance().getFeed() == null) {
  -            // Does have no feed but user wants one, create it
  +            // Does not have a feed but user wants one, create it
               Feed feed = new Feed();
               feed.setDirectory(getInstance());
               feed.setAuthor(getInstance().getCreatedBy().getFullname());
               feed.setTitle(getInstance().getName());
  +            feed.setDescription(getInstance().getDescription());
               getInstance().setFeed(feed);
   
               getFacesMessages().addFromResourceBundleOrDefault(
  @@ -128,6 +129,7 @@
               // Does have a feed and user still wants it, update the feed
               getInstance().getFeed().setTitle(getInstance().getName());
               getInstance().getFeed().setAuthor(getInstance().getCreatedBy().getFullname());
  +            getInstance().getFeed().setDescription(getInstance().getDescription());
           }
       }
   
  
  
  



More information about the jboss-cvs-commits mailing list