cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/pluto PortalContextProviderImpl.java
Date Thu, 04 Mar 2004 10:10:59 GMT
cziegeler    2004/03/04 02:10:59

  Modified:    src/blocks/portal/java/org/apache/cocoon/portal/pluto/test
                        TestPortlet.java
               src/blocks/portal/java/org/apache/cocoon/portal/pluto
                        PortalContextProviderImpl.java
  Log:
  Fixing initialization of portlet context and enhancing the test portlet
  
  Revision  Changes    Path
  1.4       +4 -1      cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/pluto/test/TestPortlet.java
  
  Index: TestPortlet.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/pluto/test/TestPortlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestPortlet.java	4 Mar 2004 09:17:04 -0000	1.3
  +++ TestPortlet.java	4 Mar 2004 10:10:59 -0000	1.4
  @@ -96,6 +96,9 @@
           Writer writer = res.getWriter();
           writer.write("<h1>Simple TestPortlet</h1>\n");
           writer.write("<p>This is a Cocoon test portlet.</p>\n");
  +        writer.write("<p>I'm running in: " + req.getPortalContext().getPortalInfo());
  +        writer.write("<p>Current portlet mode: " + req.getPortletMode() + "</p>");
  +        writer.write("<p>Current window state: " + req.getWindowState() + "</p>");
       }
   
   }
  
  
  
  1.3       +8 -4      cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/pluto/PortalContextProviderImpl.java
  
  Index: PortalContextProviderImpl.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/pluto/PortalContextProviderImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PortalContextProviderImpl.java	23 Jan 2004 01:26:04 -0000	1.2
  +++ PortalContextProviderImpl.java	4 Mar 2004 10:10:59 -0000	1.3
  @@ -94,9 +94,13 @@
       /**
        * Constructor
        */
  -    public PortalContextProviderImpl(Map objectModel) {        // these are the minimum
modes that the portal needs to support        this.modes = this.getDefaultModes();
  -        // these are the minimum states that the portal needs to support        this.states
= this.getDefaultStates(); 
  -        // set info        this.info = "Apache Cocoon/1.0";
  +    public PortalContextProviderImpl(Map objectModel) {        
  +        // these are the minimum modes that the portal needs to support        
  +        this.modes = this.getDefaultModes();
  +        // these are the minimum states that the portal needs to support        
  +        this.states = this.getDefaultStates(); 
  +        // set info       
  +        this.info = "Apache Cocoon/1.0";
           this.properties = new HashMap();
           this.init(objectModel);
       }
  
  
  

Mime
View raw message