portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r326420 - /portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/AbstractPageManager.java
Date Wed, 19 Oct 2005 07:00:49 GMT
Author: taylor
Date: Wed Oct 19 00:00:48 2005
New Revision: 326420

URL: http://svn.apache.org/viewcvs?rev=326420&view=rev
Log:
helper for creating portlet fragments

Modified:
    portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/AbstractPageManager.java

Modified: portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/AbstractPageManager.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/AbstractPageManager.java?rev=326420&r1=326419&r2=326420&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/AbstractPageManager.java
(original)
+++ portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/AbstractPageManager.java
Wed Oct 19 00:00:48 2005
@@ -222,6 +222,23 @@
         }
         return fragment;        
     }
+
+    public Fragment newPortletFragment()
+    {
+        Fragment fragment = null;
+        try
+        {
+            fragment = (Fragment)createObject(this.fragmentClass);
+            fragment.setType(Fragment.PORTLET);          
+        }
+        catch (ClassCastException e)
+        {
+            String message = "Failed to create page object for " + this.pageClass;
+            log.error(message, e);
+            // throw new JetspeedException(message, e);
+        }
+        return fragment;        
+    }
     
     /* (non-Javadoc)
      * @see org.apache.jetspeed.page.PageManager#newProperty()



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message