myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "UsingPortletModes" by DaveBrondsema
Date Mon, 22 Aug 2005 14:52:16 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by DaveBrondsema:
http://wiki.apache.org/myfaces/UsingPortletModes

------------------------------------------------------------------------------
  
  // override the render() method from GenericPortlet to detect a 
  // mode change
- public void render(RenderRequest request, RenderResponse response) {
+ public void render(RenderRequest request, RenderResponse response) 
+             throws PortletException, IOException {
     PortletSession session = request.getPortletSession();
     PortletMode mode = (PortletMode)session.getAttribute("CurrentPortletMode");
  
@@ -56, +57 @@

  }
  }}}
  
+ === Step 4: Specify this Portlet class in portlet.xml ===
+ {{{
+ <portlet-class>my.package.MyOwnPortlet</portlet-class>
+ }}}
+ 

Mime
View raw message