Volodymyr Siedlecki created MYFACES-4490:
--------------------------------------------

             Summary:  TCK: Spec Issue2948IT: Context Management for Build-In 
Scopes
                 Key: MYFACES-4490
                 URL: https://issues.apache.org/jira/browse/MYFACES-4490
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 4.0.0-RC2, 3.0.2, 2.3-next-M7, 2.3.10, 2.2.15
            Reporter: Volodymyr Siedlecki


This problem was found in the faces22/cdiInitDestroyEvent application under 
Issue2948IT.

The spec issue is found here: 
[https://github.com/eclipse-ee4j/mojarra/issues/2952]

As the spec describes: 
`Portable extensions are encouraged to fire an event with qualifier 
[@initialized|https://github.com/initialized](X.class) when a custom context is 
initialized, and an event with qualifier 
[@DESTROYED|https://github.com/DESTROYED](X.class) when a custom context is 
destroyed, where X is the scope type associated with the context. A suitable 
event payload should be chosen.` 

The test can be found here:
[https://github.com/jakartaee/faces/blob/4.0.1/tck/faces22/cdiInitDestroyEvent/src/test/java/ee/jakarta/tck/faces/test/javaee7/cdiinitdestroyevent/cdiinitdestroyevent/Issue2948IT.java#L101
 
|https://github.com/jakartaee/faces/blob/4.0.1/tck/faces22/cdiInitDestroyEvent/src/test/java/ee/jakarta/tck/faces/test/javaee7/cdiinitdestroyevent/cdiinitdestroyevent/Issue2948IT.java#L101]


MyFaces fails to call this method within the application: 
{code:java}
observeSessionStart(@Observes @Initialized(SessionScoped.class) HttpSession 
event) {
 this.userBean.setInitMessage("" + System.currentTimeMillis());{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to