cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] Main CocoonUserGroupSwitzerland FirstFridayDecember2003 JSR168Portlet Thu Dec 4 17:00:05 2003
Date Thu, 04 Dec 2003 16:00:05 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=Main , version: 310 on Thu Dec  4 15:35:54 2003
by Vadim

+ * December 4, 2003
+ ** Added draft of [JSR168Portlet] ''-- [Vadim]''


Page: http://wiki.cocoondev.org/Wiki.jsp?page=CocoonUserGroupSwitzerland , version: 45 on
Thu Dec  4 15:58:46 2003 by MichaelGerzabek

+ *[MichaelGerzabek]: 27th, (28th), 29th are ok.


Page: http://wiki.cocoondev.org/Wiki.jsp?page=FirstFridayDecember2003 , version: 14 on Thu
Dec  4 15:33:54 2003 by JoergHeinicke

- * Duplicate namespace declaration in SQLTransformer (repeatedly reported, e.g. [here|http://marc.theaimsgroup.com/?t=106863248500002&r=1&w=2])
+ * Duplicate namespace declaration in SQLTransformer (repeatedly reported, e.g. [here|http://marc.theaimsgroup.com/?t=106863248500002&r=1&w=2],
[Bug 25203|http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25203])
?                                                                                        
                                                     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Page: http://wiki.cocoondev.org/Wiki.jsp?page=JSR168Portlet , version: 1 on Thu Dec  4 15:33:38
2003 by Vadim

New page created:
+ !Basics
+ 
+ JSR168 defines API for writing portable (across portal implementations) portlets in Java,
and is similar (and related) to the Servlets spec.
+ 
+ To implement JSR168 Portlet using Cocoon, JSR168 Environment is introduced.
+ 
+ !Environment
+ 
+ JSR168 environment for Cocoon maps Portlet primitives onto Cocoon primitives. Most of the
+ time mapping is obvious:
+ 
+ | __org.apache.cocoon.environment.portlet__ | __javax.portlet__  |
+ | PortletRequest                            | PortletRequest     |
+ | PortletResponse                           | PortletResponse    |
+ | ActionRequest                             | ActionRequest      |
+ | ...                                       | ...                |
+ | PortletCookie                             | PortletPreferences |
+ 
+ But there are times when it is not so obvious. Let's look at PortletRequest:
+ 
+ | __org.apache.cocoon.environment.portlet.PortletRequest__ | __javax.portlet.PortletRequest__
|
+ | headers                                     | properties   |
+ | cookies (only name and value are populated) | preferences  |
+ | header X-Portlet-Mode                       | portletMode  |
+ | header X-Window-State                       | windowState  |
+ | pathInfo                                    | parameter cocoon-portlet-path |
+ | servletPath                                 | ''no analogy; populated by CocoonPortlet''
|
+ | contentLength                               | -1     |
+ | contentType                                 | null   |
+ | protocol                                    | JSR168 |
+ | remoteAddr                                  | null   |
+ | remoteHost                                  | null   |
+ | method                                      | GET for RenderRequest, POST for ActionRequest
|
+ | pathTranslated                              | null   |
+ | queryString                                 | ""     |
+ | requestURI                                  | contextPath ''(what should be here?)'' |
+ | isRequestedSessionIdFromCookie              | false  |
+ | isRequestedSessionIdFromURL                 | true   |
+ 
+ The rest of Request interface methods are mapped 1:1 to corresponding PortletRequest
+ methods (no surprises).
+ 
+ !Deployment
+ 
+ Here we outline deployment of CocoonPortlet in the Pluto Portlet container. You'll need:
+ * jars:
+ * portal.xml:
+ * web.xml:
+ * sitemap.xmap:
+ 



Mime
View raw message