You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by csev <cs...@umich.edu> on 2010/08/21 17:38:37 UTC

Requiring VIEW as one of the portlet-modes in portlet.xml

Forgive me if this is a well-worn topic.

As I look through the JSR-168 spec, all the examples do not include "VIEW" as one of the supported portlet modes and as I look at the early Sun example portlets at 

http://developers.sun.com/portalserver/reference/techart/jsr168/

They do not include VIEW as one of the allowed modes - so my Pluto-based portal (Sakai) blows up when these portlets try to set themselves back to VIEW mode.

It would seem logical to me in 

pluto-container/src/main/java/org/apache/pluto/internal/impl/ActionResponseImpl.java

isPortletModeAllowedByPortlet

To always assume "view" is a legal portlet mode regardless of whether or not it was explicitly listed in portlet.xml..

If this was discussed and the conclusion is to "be strict" - that is OK - just let me know.

Thanks in advance.

Chuck Severance
University of Michigan