Re: [Stripes-users] Stripes and Portlets
On 18-10-2010 at 13:40, andres wrote: I want to ask, if anyone has used Stripes for portlets (JSR 168, JSR 286) and if there is a way to use it with portal server (websphere). We have one web application done with Stripes and we want run it like a portlet on websphere portal server. if anyone knows the subject or may give clues would greatly appreciate it. Thanks, greetings I doubt if anyone has used Stripes for portlets, as servlets and portlets have an entirely different ecosystem around them (servlet container vs. portal). Also note that the portlet request cycle is different: action processing and rendering is separated. Also, much depends on the portlet version being used. The first specification doesn't allow extra resources such as CSS files, images, etc. and should be avoided (although I realize this choice is not always available). The portlets 2 and WSRP 2 specifications do allow these things, and thus can support Stripes. 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 Oscar -- ,-_ Oscar Westra van Holthe - Kind http://www.xs4all.nl/~kindop/ /() ) (__ ( The haves and the have-nots can often be traced back to the =/ () dids and the did-nots. signature.asc Description: Digital signature -- 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
Re: [Stripes-users] Stripes and Portlets
... some bridge for portlets ... --- El lun, 18/10/10, andres ispanand...@yahoo.es escribió: De: andres ispanand...@yahoo.es Asunto: Re: [Stripes-users] Stripes and Portlets Para: Stripes Users List stripes-users@lists.sourceforge.net Fecha: lunes, 18 de octubre, 2010 16:19 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 -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
Re: [Stripes-users] Stripes and Portlets
iframe/ ? :) Cheers Remi 2010/10/18 andres ispanand...@yahoo.es ... some bridge for portlets ... --- El *lun, 18/10/10, andres ispanand...@yahoo.es* escribió: De: andres ispanand...@yahoo.es Asunto: Re: [Stripes-users] Stripes and Portlets Para: Stripes Users List stripes-users@lists.sourceforge.net Fecha: lunes, 18 de octubre, 2010 16:19 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/http://www.xs4all.nl/%7Ekindop/ (__ ( =/ () 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 -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.nethttp://mc/compose?to=stripes-us...@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 -- 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
Re: [Stripes-users] Stripes and Portlets
On 18-10-2010 at 16:40, Grzegorz Krugły wrote: iframe is the worst solution one could think of ;-) It's not even proper HTML 4. For some, the same thing can be said about portlets. And certainly the first portlet specification (JSR 168) qualifies, as it doesn't support portlet specific non-inline CSS, dynamic images, file downloads, etc. (you'd need to setup a separate servlet, which defeats the point of a portlet). It's not until the second specification (JSR 286) that portlets can be considered seriously, IMNSHO. Oscar -- ,-_ /() ) Oscar Westra van Holthe - Kind http://www.xs4all.nl/~kindop/ (__ ( =/ () A half truth is a whole lie. -- Yiddish Proverb signature.asc Description: Digital signature -- 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
Re: [Stripes-users] Stripes and Portlets
Portlets ? Seriously ? Seriously... :P I was joking with the iframe thing, even if it might be a simple option to include some external content in a portlet, I don't know. The other option (the Stripes rewrite) is even more hackish to me ! Anyway, iframes are everywhere. Crappy but damn useful if you ask me :P Even Google has one on the front page... Cheers Remi 2010/10/18 Oscar Westra van Holthe - Kind os...@westravanholthe.nl On 18-10-2010 at 16:40, Grzegorz Krugły wrote: iframe is the worst solution one could think of ;-) It's not even proper HTML 4. For some, the same thing can be said about portlets. And certainly the first portlet specification (JSR 168) qualifies, as it doesn't support portlet specific non-inline CSS, dynamic images, file downloads, etc. (you'd need to setup a separate servlet, which defeats the point of a portlet). It's not until the second specification (JSR 286) that portlets can be considered seriously, IMNSHO. Oscar -- ,-_ /() ) Oscar Westra van Holthe - Kind http://www.xs4all.nl/~kindop/http://www.xs4all.nl/%7Ekindop/ (__ ( =/ () A half truth is a whole lie. -- Yiddish Proverb -BEGIN PGP SIGNATURE- iEYEARECAAYFAky8XoMACgkQLDKOJAl7tOK8zgCfSFhdeSxgpApAY4uqxaAw22ow QrMAn3qiekOoSIPT0bWmVvp9OakwyF8S =ZtzZ -END PGP SIGNATURE- -- 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 -- 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
Re: [Stripes-users] Stripes and Portlets
andres ispanand...@... writes: Hi all,I want to ask, if anyone has used Stripes for portlets (JSR 168, JSR 286) and if there is a way to use it with portal server (websphere). We have one web application done with Stripes and we want run it like a portlet on websphere portal server.if anyone knows the subject or may give clues would greatly appreciate it.Thanks, greetingsThe same message in SpanishQuiero preguntar, si alguien ha utilizado Stripes como portlets (JSR 168, JSR 286) y si hay una manera de utilizarlo con el servidor de portal (WebSphere).Tenemos una aplicación web hecha con Stripes y queremos que funcione como un portlet en el servidor WebSphere Portal.Si alguien sabe del tema o puede dar pistas sería de gran aprecio.Gracias, saludos -- 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-us...@... https://lists.sourceforge.net/lists/listinfo/stripes-users I recommend to you Spring MVC, they have a Portlet version and is similar but not equal and not so good to Stripes. But you, probably, will have less problems rewriting your application in Spring MVC that rewriting Stripes itself. A Complete Stripes portlet version will be cool but both portlets seem to be a little dead Spanish Te recomiendo que uses Spring MVC, ellos tiene una versión para Portlets pero no es igual y no es tan bueno como Stripes. Pero tú, probablemente, tendrás menos problemas reescribiendo tu aplicación en Spring MVC que reescribiendo Stripes. Una versión completa de Stripes para portlets sería chévere pero los portlets se ven un poco muertos -- 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
Re: [Stripes-users] Stripes and Portlets
Hi Nikolaos I agree with you regarding the scalability an silverbullet issue. However, there will still be customers that wants to move around with web content, and present it using different configurations (portals) depending on different customers. The best shot at the moment might be Jsr286, but I haven't tried it out yet. Anyway, I am also tired of technologies that promises to save the world... Which is why I like stripes : Regards Søren Den 18/10/2010 19.00 skrev Nikolaos Giannopoulos nikol...@brightminds.org : Andres, Having worked with Portal Servers for many years... I have to say that in theory Portal servers are great. In practice there are A LOT of issues with them. The 2 biggest problems offhand are: 1) the fact that they ADD an entirely different layer on top of your web container being the portlet container and make simple web development a little more like rocket science (as if it isn't hard enough as it is at times). For this the iFrame is a classic solution. Yes - not what you might expect but heavily utilized in the Portal / Portlet space. 2) due to 1) they have a voracious appetite for CPU and memory... and as such have a litter of many failed projects... . And I don't mean small customers... I mean VERY large customers in the USA and Canada who give up on either a) buying all the extra hardware OR b) buying all the extra licenses for their app servers. I have had clients ask me with my enterprise box with X CPU's that should be enough... NO?... why the performance issues?... double the CPU and the #boxes if you can was my answer and you still will probably have scalability issues... they did and it didn't help :-) Portals were supposed to be the end all to Enterprise and aggregate the hundreds / thousands of local systems on an Intranet... instead they have met largely with failure on a grand scale and what I most often see are companies going back to building large web apps after they have experienced the Portal world. So it isn't surprising that Stripes lacks integration... and it isn't surprising that Spring MVC does... or whatever... what is surprising for me personally is to see people still trying to build or maintain sites around them ;-) --Nikolaos Mario Arias wrote: andres ispanand...@... writes: Hi all,I want to ask, if a... -- 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 -- 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
Re: [Stripes-users] Stripes and Portlets
Hi Oscar Sure, although I can't say when this will happen. I have created a bridge that copies some of the concepts in Jsr286, so it should be doable to make it 286 compliant, but we'll see. Will go into production with the first portlet next month, so I am a bit excited! Get back in a while when I know more. Regards Søren Den 18/10/2010 19.53 skrev Oscar Westra van Holthe - Kind os...@westravanholthe.nl: On 18-10-2010 at 18:50, Søren Pedersen wrote: Wouldn't it just be a question of writing a bridge... Hi Søren, Once you have a semi-working version for JSR 286 and WSRP 2, I'd be more than a little interested in the design of it. Especially as I've seen customers struggling to grasp what's needed to make it work. So far, all just a simple port projects I've seen have ended up as at least a partial rewrite, up toa complete redesign of the view layer. Regards, Oscar -- ,-_ Oscar Westra van Holthe - Kind http://www.xs4all.nl/~kindop/ /() ) (__ ( Progress is made by lazy men looking for easier ways to do things. =/ () -- Robert Heinlein -BEGIN PGP SIGNATURE- iEYEARECAAYFAky8iQ8ACgkQLDKOJAl7tOI9nwCg2DsTqqpIP74JF3gZFulrU2Ix zmgAoPauLPDbrGGZEcX2HGlEXHwIRYXm =TAzw -END PGP SIGNATURE- -- 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 -- 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
[Stripes-users] Stripes in Portlets
Hi All, I have to develop a new application that runs as a portlet. Can I use stripes to do this(ie. is there a portlet bridge for stripes to run in such a container?) If not, do anyone know of any framework that has such a bridge apart from JSF and Struts? Thank you -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users