Hi Gerhard, Thanks, didn't know you already coded @JsfPhaseListener support in DS.
Looking at your source code [1], it should work like my patch in CODI : it should work in EAR situation with JBoss 7.1.0, but 'for multiple wars in the same ear all @JsfPhaseListener will be executed - even if one of them is only defined in one ear'. I'll try DS JsfPhaseListener on Monday with my sample EAR. best regards, Adrian [1] https://git-wip-us.apache.org/repos/asf?p=incubator-deltaspike.git;a=tree;f=deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/listener/phase;hb=HEAD ----- Mail original ----- De : Gerhard Petracek <gerhard.petra...@gmail.com> À : MyFaces Discussion <users@myfaces.apache.org> Cc : Envoyé le : Vendredi 22 mars 2013 0h41 Objet : Re: CODI ViewAccessScoped issue with EAR on JBoss 7.1.x hi adrian, you can try if the approach i used in deltaspike would help. regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2013/3/21 Adrian Gonzalez <adr_gonza...@yahoo.fr> > Hi Mark, > > I find CODI really usefull - great library (IMO the JSF scopes are a > must-have for any JSF application). > I'll test the patch on monday on websphere with CLASSLOADER SINGLE and > MULTIPLE and wait for Aleksey feedback before opening the JIRA. > > > Best regards, > > Adrian > > P.S. Please note that the patch doesn't solve all the problems (i.e. for > multiple wars in the same ear all @JsfPhaseListener will be executed - even > if one of them is only defined in one ear). > I don't know how to fully resolve this CDI / EAR / WAR / Classloading > issue, not sure it's even doable for now. > > > ----- Mail original ----- > De : Mark Struberg <strub...@yahoo.de> > À : MyFaces Discussion <users@myfaces.apache.org>; Adrian Gonzalez < > adr_gonza...@yahoo.fr> > Cc : > Envoyé le : Jeudi 21 mars 2013 22h01 > Objet : Re: CODI ViewAccessScoped issue with EAR on JBoss 7.1.x > > Hi folks! > > a.) I hope you find CODI useful nontheless ;) > b.) if this fix solves the problems, can you please open a JIRA for the > EXTCDI project and attach the patch? > > txs and LieGrue, > strub > > > > > ----- Original Message ----- > > From: Пестов Алексей <pestov.ale...@gmail.com> > > To: MyFaces Discussion <users@myfaces.apache.org>; Adrian Gonzalez < > adr_gonza...@yahoo.fr> > > Cc: > > Sent: Thursday, March 21, 2013 8:38 PM > > Subject: Re: CODI ViewAccessScoped issue with EAR on JBoss 7.1.x > > > > Adrian, thank you very much for quick response! > > > > I'll try to apply your patch. > > > > > > On Thu, Mar 21, 2013 at 9:38 PM, Adrian Gonzalez > > <adr_gonza...@yahoo.fr>wrote: > > > >> Hi Aleksey, > >> > >> Here's the patch file (my first one with git). > >> I've obtained it executing [1] > >> > >> I've changed CODI version from 1.0.5 to 1.0.5.nxs1-SNAPSHOT in the same > >> commit (so sorry, you have this modification with this patch). > >> > >> > >> Hope this helps, > >> > >> [1] execute the following line after cloning > >> https://github.com/gonzalad/myfaces-extcdi > >> git diff d141ac555cb263c6413c6f4ddebbd41bd4768eac^ > >> d141ac555cb263c6413c6f4ddebbd41bd4768eac on my > >> > >> > >> > >> > >> ----- Mail original ----- > >> De : Пестов Алексей <pestov.ale...@gmail.com> > >> À : users@myfaces.apache.org > >> Cc : > >> Envoyé le : Jeudi 21 mars 2013 18h22 > >> Objet : Re: CODI ViewAccessScoped issue with EAR on JBoss 7.1.x > >> > >> Hello. Today I decided to use it and got the same problem. This does > not > >> work in the EAR to JBoss 7.1.1. > >> > >> Adrian, could you please make a patch (*.diff) with your solution? > >> > >> I would also like to know about your option 2) > >> > >> >>2. remove @JsfPhaseListener and rely on classic phaseListeners > > configured > >> with faces-config.xml > >> > >> Can do this in faces-config.xml of my application, not in > >> myfaces-extcdi-bundle-jsf20-1.0.5.jar > >> ? > >> > >> Best regards, > >> > >> Aleksey > >> > > > > > > > > -- > > С уважением, > > Алексей Пестов > > тел. +7 (925) 067-32-13 > > > >