[pal-cvs 2410] [142] set empty.

svnno****@sourc***** svnno****@sourc*****
2007年 5月 14日 (月) 18:18:07 JST


Revision: 142
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=142
Author:   shinsuke
Date:     2007-05-14 18:18:07 +0900 (Mon, 14 May 2007)

Log Message:
-----------
set empty.

Modified Paths:
--------------
    wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java
    wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java


-------------- next part --------------
Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java
===================================================================
--- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java	2007-05-14 09:17:20 UTC (rev 141)
+++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java	2007-05-14 09:18:07 UTC (rev 142)
@@ -89,6 +89,7 @@
      * @return
      */
     public String prerender() {
+        setContent("");
         return null;
     }
 

Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java
===================================================================
--- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java	2007-05-14 09:17:20 UTC (rev 141)
+++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java	2007-05-14 09:18:07 UTC (rev 142)
@@ -44,7 +44,7 @@
         if (pageName == null || pageName.equals("")) {
             // TODO i18n
             FacesMessageUtil.addErrorMessage("Invalid page name.");
-            return WikiConstants.DISPLAY_CONTENT_HTMLPAGE;
+            return null;
         }
 
         WikiContentService contentService = (WikiContentService) container
@@ -67,6 +67,7 @@
      * @return
      */
     public String prerender() {
+        setPageName("");
         return null;
     }
 


pal-cvs メーリングリストの案内