portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/portlet/impl ContentTypeSetImpl.java
Date Tue, 27 Jul 2004 21:01:50 GMT
weaver      2004/07/27 14:01:50

  Modified:    components/registry/src/java/org/apache/jetspeed/om/portlet/impl
                        ContentTypeSetImpl.java
  Log:
  Made it so that ContentTypeSetImpl.supportsPortletMode() always returns true when the mode
is view.
  I did this because some portlet vendors (cough, cough Sun) don't explicity specify support
for view.
  This actually kinda makes sense in that what good is a portlet if you can't view it ;-)
  
  This was also why the Sun portlets where not working correctly.  Now, book mark portlet
deletes correctly.  Cancel doesn't
  minimize the Sun portlets, etc.
  
  Revision  Changes    Path
  1.3       +7 -0      jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/ContentTypeSetImpl.java
  
  Index: ContentTypeSetImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/ContentTypeSetImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ContentTypeSetImpl.java	8 Mar 2004 00:49:05 -0000	1.2
  +++ ContentTypeSetImpl.java	27 Jul 2004 21:01:50 -0000	1.3
  @@ -45,6 +45,13 @@
   
       public boolean supportsPortletMode(PortletMode mode)
       {
  +        // Always support "VIEW".  Some portlet vendors do not indicate view
  +        // in the deployment descriptor.
  +        if(mode.equals(PortletMode.VIEW))
  +        {
  +            return true;
  +        }
  +        
           Iterator itr = innerCollection.iterator();
           while (itr.hasNext())
           {
  
  
  

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


Mime
View raw message