weaver 2005/01/04 08:12:47 Modified: portal/src/java/org/apache/jetspeed/container/window/impl PortletWindowAccessorImpl.java Log: added support for generating entities that have no portlet definition. This allows us to communicate the error to end user via the rendered fragment. Revision Changes Path 1.10 +6 -2 jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/window/impl/PortletWindowAccessorImpl.java Index: PortletWindowAccessorImpl.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/window/impl/PortletWindowAccessorImpl.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- PortletWindowAccessorImpl.java 8 Sep 2004 13:56:49 -0000 1.9 +++ PortletWindowAccessorImpl.java 4 Jan 2005 16:12:47 -0000 1.10 @@ -131,7 +131,11 @@ try { portletEntity = entityAccessor.generateEntityFromFragment(fragment, principal); - entityAccessor.storePortletEntity(portletEntity); + // not portlet definition most likely means that the portlet has not been deployed so dont worry about storing off the entity + if(portletEntity.getPortletDefinition() != null) + { + entityAccessor.storePortletEntity(portletEntity); + } } catch (PortletEntityNotGeneratedException e) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]