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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to