Develop and Download Open Source Software

Browse CVS Repository

Diff of /pal/wiki/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayContentPage.java

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.1.1 by shinsuke, Thu Jan 4 12:10:44 2007 UTC revision 1.2 by shinsuke, Sat Jan 27 15:38:33 2007 UTC
# Line 17  package jp.sf.pal.wiki.web.viewer; Line 17  package jp.sf.pal.wiki.web.viewer;
17    
18  import jp.sf.pal.wiki.service.WikiContentService;  import jp.sf.pal.wiki.service.WikiContentService;
19    
20    import org.apache.commons.logging.Log;
21    import org.apache.commons.logging.LogFactory;
22  import org.seasar.framework.container.S2Container;  import org.seasar.framework.container.S2Container;
23    
24  /**  /**
# Line 24  import org.seasar.framework.container.S2 Line 26  import org.seasar.framework.container.S2
26   *   *
27   */   */
28  public class DisplayContentPage {  public class DisplayContentPage {
29        /**
30         * Logger for this class
31         */
32        private static final Log log = LogFactory.getLog(DisplayContentPage.class);
33    
34      /**      /**
35       *       *
# Line 34  public class DisplayContentPage { Line 40  public class DisplayContentPage {
40    
41      private S2Container container;      private S2Container container;
42    
43      public DisplayContentPage(S2Container container) {      private WikiContentService wikiContentService;
44          setContainer(container);  
45        public DisplayContentPage() {
46      }      }
47    
48      /**      /**
# Line 49  public class DisplayContentPage { Line 56  public class DisplayContentPage {
56       * @return       * @return
57       */       */
58      public String prerender() {      public String prerender() {
59          WikiContentService contentService = (WikiContentService) container          if (log.isDebugEnabled()) {
60                  .getComponent(WikiContentService.class);              log.debug("prerender()");
61          setPageName(contentService.getCurrentPageName());          }
62          setContent(contentService.getCurrentConvertedContent());  
63            // WikiContentService wikiContentService = (WikiContentService)
64            // container
65            // .getComponent(WikiContentService.class);
66            setPageName(getWikiContentService().getCurrentPageName());
67            setContent(getWikiContentService().getCurrentConvertedContent());
68          return null;          return null;
69      }      }
70    
# Line 101  public class DisplayContentPage { Line 113  public class DisplayContentPage {
113          this.pageName = pageName;          this.pageName = pageName;
114      }      }
115    
116        /**
117         * @return Returns the wikiContentService.
118         */
119        public WikiContentService getWikiContentService() {
120            return wikiContentService;
121        }
122    
123        /**
124         * @param wikiContentService
125         *            The wikiContentService to set.
126         */
127        public void setWikiContentService(WikiContentService wikiContentService) {
128            this.wikiContentService = wikiContentService;
129        }
130    
131  }  }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26