Re: [MyFaces 2.2] invoke @PreDestroy on (CDI) ViewScoped beans upon session expiration

2013-10-17 Thread Leonardo Uribe
Hi You can check here: https://builds.apache.org/view/M-R/view/MyFaces/job/myfaces-current22-1/ As soon as the job (#1164) is done, you can take the jars from that location (which should be the same). regards, Leonardo Uribe 2013/10/17 Howard W. Smith, Jr. > Okay, that is great. I'm waitin

Re: [MyFaces 2.2] invoke @PreDestroy on (CDI) ViewScoped beans upon session expiration

2013-10-17 Thread Howard W. Smith, Jr.
Okay, that is great. I'm waiting for the following folders to be updated with the latest version: 1. https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/myfaces-api/2.2.0-SNAPSHOT/ 2. https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/

Re: [MyFaces 2.2] invoke @PreDestroy on (CDI) ViewScoped beans upon session expiration

2013-10-17 Thread Leonardo Uribe
Hi I have found the bug. The problem was caused on a refactor, there was an old code that skip state saving when view map is empty, but now since there is a proxy for that implementing StateHolder, the map can be empty but it holds the view scope key. Since with CDI the beans are stored internally

Re: [MyFaces 2.2] invoke @PreDestroy on (CDI) ViewScoped beans upon session expiration

2013-10-17 Thread Leonardo Uribe
Hi I have committed a fix for the problem with the timeout. But I'm curious about this problem, because I tested this scope and specifically the @PreDestroy stuff. It should work. But maybe there is a bug somewhere regards, Leonardo Uribe 2013/10/17 Howard W. Smith, Jr. > responses inlin

Re: [MyFaces 2.2] invoke @PreDestroy on (CDI) ViewScoped beans upon session expiration

2013-10-17 Thread Howard W. Smith, Jr.
responses inline below, On Thu, Oct 17, 2013 at 9:32 PM, Leonardo Uribe wrote: > > public void onSessionDestroyed() > { > // In CDI case, the best way to deal with this is use a method > // with @PreDestroy annotation on a session scope bean > // ( ViewScopeBeanH

Re: [MyFaces 2.2] invoke @PreDestroy on (CDI) ViewScoped beans upon session expiration

2013-10-17 Thread Leonardo Uribe
Hi Could you please provide an example to test this stuff properly? The problem in this point is these lines in the javadoc of javax.faces.view.ViewScope: "... In the session expiration case, the runtime must ensure that FacesContext.getCurrentInstance() returns a valid instance if it is called d

Re: [MyFaces 2.2] invoke @PreDestroy on (CDI) ViewScoped beans upon session expiration

2013-10-17 Thread Howard W. Smith, Jr.
On Thu, Oct 17, 2013 at 8:53 PM, Howard W. Smith, Jr. < smithh032...@gmail.com> wrote: > Clarification: my test included session.invalidate() instead of (actual) > session expired (via/after session timeout). > > will provide test (config, steps and) results in my next response to this > thread. >

[MyFaces 2.2] invoke @PreDestroy on (CDI) ViewScoped beans upon session expiration

2013-10-17 Thread Howard W. Smith, Jr.
Hmmm, based on Gerhard's recent response below, On Thu, Oct 17, 2013 at 7:45 AM, Gerhard Petracek < gerhard.petra...@gmail.com> wrote: > @myfaces-core: > the minimal goal is to be spec. compliant. > and JAVASERVERFACES_SPEC_PUBLIC-905[1], I downloaded latest MyFaces 2.2 api and impl JARs (2013-O

Re: Future of MyFaces in non-CDI environments

2013-10-17 Thread Gerhard Petracek
hi moritz, @myfaces-core: the minimal goal is to be spec. compliant. @osgi+cdi: you might be interested in [1]. regards, gerhard [1] http://s.apache.org/Qu7 http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support

Future of MyFaces in non-CDI environments

2013-10-17 Thread Moritz Bechler
Hi, I've been recently working on proof of concept code to enable modular JSF applications in OSGI environments (artifacts spread over multiple bundles). Following the JCP discussion it very much seems that CDI will become the primary (potentially mandatory) injection and context management mechan