<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi Tomaz,</span></div><div><span><br></span></div><div><span>I'm no Seam developper (just a user) and I didn't begin any migration yet ;(</span></div><div><span><br></span></div><div><span>I'm interested about what alternative did you use for seam pdf/xls (</span><span class="Apple-style-span" style="color: rgb(69, 69, 69); ">seam pdf/xls - there is (good) alternative but it means rewrite all the templates)</span></div><div><span><span class="Apple-style-span" style="color: rgb(69, 69, 69); "><br></span></span></div><div><span><span class="Apple-style-span" style="color: rgb(69, 69, 69); ">Thanks very much for the feedback !</span></span></div><div><br></div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <font
size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">De :</span></b> Tomaž Cerar <cerar@parsek.com><br> <b><span style="font-weight: bold;">À :</span></b> Jozef Hartinger <jharting@redhat.com>; Antoine Sabot-Durand <antoine@sabot-durand.net> <br><b><span style="font-weight: bold;">Cc :</span></b> seam-dev@lists.jboss.org <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Lundi 28 Novembre 2011 11h28<br> <b><span style="font-weight: bold;">Objet :</span></b> Re: [seam-dev] what about a seam2 - CDI Bridge ?<br> </font> <br>Just programming model is not enough as it covers maybe 10% of the problems with seam2--> cdi+seam3 migration.<br>Also, there are scenarios that code that is automatically converted won't work. The biggest problems are:<br> - @Out has no alternative in CDI (and rightly so)<br> - @Factory as @Produces does not behave the same
(producer from non-defendant scope cannot return null)<br> - Component.getInstance("myComponent") can be mimicked in cdi but it is not the same<br><br>I have tried to migrate a medium size project from seam2 to cdi+ seam3 modules and the behavior of producers forced me to change the code quite a bit not just replace annotations.<br><br>If we put this aside, what I have found out when porting project was lots of features of seam2 that have no replacements in cdi+seam3 or parts where replacement means changing lots of code.<br>Currently there is no replacement or replacement is hard:<br>- seam application framework - for witch I think there could be an easy port if we retain same functionality/concept<br>- s:* tags - and taglibs in general(a4j:,rich:), there are no replacements for lots of components or behavior is totally different, changing all that is the biggest problem in project I am porting even with including monstrum like
richfaces<br>- seam mail - all the templates have to be changed - new concept is great but backward compatibly is non-existent<br>- seam remoting - for gwt remoting now there is errai witch is great but migrating from seam gwt servlet to errai is whole project for itelf...<br>- seam pdf/xls - there is (good) alternative but it means rewrite all the templates<br>- rewriting support - what we have now is let's say ok(still missing few features of pages.xml), but external project, additional dependencies and non-seamless integration is quite a pain to maintain<br>And other small things that is got used to :-)<br><br>Really the biggest problem with migration is all that taglibs missing with no replacements, refactoring code is one thing and it can be quite well tested but refactor xhtml templates is a different beast that requires lots of changes to code and in some cases also UX and UI changes...<br><br>Before trying to go this path I tried to migrate
project step by step in the way that seam2 could co-exists with cdi on AS7, for that I have created a fork of seam2 on my github that runs native on AS7 or say batter it runs as JEE6 (JPA2,JSF2,...) it still has some issues but I stopped fixing that as the biggest problem was that it does play well with seam-persistence module as there is package clash... and I cannot use persistence in both seam components and in cdi ones.<br><br>There are lots of ideas how to attack problems of migrating from seam2 to seam3 but as it seems there are lots of features missing and there is nothing to migrate to...<br>We talked about migration with Pete and Lincoln on JUDCON in Boston where idea for migration of code was a plugin to forge that would refactor the code for you and not go with cdi extension that would that for you at runtime...<br>Creating the bridge that would enable you getting cdi components in seam ones is quite easy if you know what you are doing but I
don't know how useful it is in the long run, we have one project that is a hybrid like that and it gives us lots of development/maintenance issues...<br><br><br>Cheers,<br>tomaz<br><br><br>-----Original Message-----<br>From: <a ymailto="mailto:seam-dev-bounces@lists.jboss.org" href="mailto:seam-dev-bounces@lists.jboss.org">seam-dev-bounces@lists.jboss.org</a> [mailto:<a ymailto="mailto:seam-dev-bounces@lists.jboss.org" href="mailto:seam-dev-bounces@lists.jboss.org">seam-dev-bounces@lists.jboss.org</a>] On Behalf Of Jozef Hartinger<br>Sent: Friday, November 25, 2011 5:06 PM<br>To: Antoine Sabot-Durand<br>Cc: <a ymailto="mailto:seam-dev@lists.jboss.org" href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>Subject: Re: [seam-dev] what about a seam2 - CDI Bridge ?<br><br>I've been working on something similar. It is a CDI extension that allows a Seam 2 application to run in an EE6 container without Seam 2. <br>It focuses solely on the core
programming model. Some of the Seam 2 -> CDI conversions are done at the deployment time while the rest is handled by a compatibility layer at runtime.<br><br>On 11/25/2011 02:26 PM, Antoine Sabot-Durand wrote:<br>> Reading the SeamNext thread and all these remarks about Seam 2 to Seam<br>> 3 migration I was wondering how difficult would it be to create a Seam<br>> 2 CDI extension to provide the same kind of bridge we have with Spring ?<br>><br>> This bridge would be one way : using Seam 2 bean in CDI (the other way <br>> is not relevant). It would help people to go thru the migration <br>> process don't you think ?<br>><br>> The biggest difficulty would probably be the Seam 2 navigation and <br>> providing some kind of extension to merge JSF2 and Seam 2 navigation <br>> seems a bit tricky.<br>><br>><br>><br>> Antoine SABOT-DURAND<br>><br>><br>>
_______________________________________________<br>> seam-dev mailing list<br>> <a ymailto="mailto:seam-dev@lists.jboss.org" href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>_______________________________________________<br>seam-dev mailing list<br><a ymailto="mailto:seam-dev@lists.jboss.org" href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br><br>!DSPAM:6,4ecfbd12173961628642973!<br><br><br>_______________________________________________<br>seam-dev mailing list<br><a ymailto="mailto:seam-dev@lists.jboss.org" href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/seam-dev"
target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br><br><br> </div> </div> </div></body></html>