I dont want to do restructure of Stripes. I am looking for some layer or 
interfas for implement work with Stripes. I have application on Stripes, and i 
am not good about portlets.


--- El lun, 18/10/10, Oscar Westra van Holthe - Kind <os...@westravanholthe.nl> 
escribió:

De: Oscar Westra van Holthe - Kind <os...@westravanholthe.nl>
Asunto: Re: [Stripes-users] Stripes and Portlets
Para: "Stripes Users List" <stripes-users@lists.sourceforge.net>
Fecha: lunes, 18 de octubre, 2010 15:54

On 18-10-2010 at 15:28, Oscar Westra van Holthe - Kind wrote:
> To make Stripes work with portlets would require these steps:
> 1. Convert the StripesFilter to a portlet filter.
> 2. Convert the StripesDispatcher servlet to a portlet (it mainly handles the
>    lifecycle and lets other classes to the work, so this should be doable).
> 3. In the dispatcher portlet, store the Resolution obtained from the event
>    handling, so it can be used during the rendering phase.
> 
> As an added bonus, you'll need to:
> - resolve redirects (impossible for portlets),
> - ensure that the Resolution instance can be infinitely reused,
> - be aware that rendering properties can and will be stored (and thus reused)
>   by the portal server, making selecting the default handler trickier

Oh, and Resolutions require a HttpServlet and HttpServletResponse, so you'll
need to create versions that wrap the corresponding portlet classes -- all
three pairs of them:
- ActionRequest/ActionResponse
- RenderRequest/RenderResponse
- ResourceRequest/ResourceResponse

To add complexity, you'll need to detect when a Resolution actually provides
a page or another resource (download, AJAX response, ...). The reason is that
pages are rendered, while all other Resolution results are handled similarly
to a dymanic image using a ResourceServingPortlet. You'll also need to
provide a different tag to generate such resource URL's.

All in all, I think it's easier to reuse Stripes' strengths such as the
validators, population strategy, etc. and create a new lifecycle plus
PortletBean and Resolution interfaces for it.


Oscar

-- 
   ,-_
  /() ) Oscar Westra van Holthe - Kind      http://www.xs4all.nl/~kindop/
 (__ (
=/  ()  A half truth is a whole lie.  -- Yiddish Proverb

-----Adjunto en línea a continuación-----

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
-----Adjunto en línea a continuación-----

_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users



      
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to