javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2641

ViewScope CDI context should use UIViewRoot.getViewMap to store view scoped beans

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-m07
    • Fix Version/s: 2.2.0-m09
    • Component/s: None
    • Labels:
      None

      Activity

      Hide
      Manfred Riem added a comment -

      Applied to 2.2 trunk,

      svn commit -m "Fixes http://java.net/jira/browse/JAVASERVERFACES-2641, r=rogerk, make sure the @ViewScoped CDI annotation uses the view map to store instances."
      Sending jsf-ri\conf\share\javax.enterprise.inject.spi.Extension
      Sending jsf-ri\src\main\java\com\sun\faces\application\NavigationHandlerImpl.java
      Sending jsf-ri\src\main\java\com\sun\faces\application\WebappLifecycleListener.java
      Adding jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeContext.java
      Adding jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeContextObject.java
      Adding jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeExtension.java
      Deleting jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopedCDIContext.java
      Deleting jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopedCDIExtension.java
      Sending test\web-profile\flow\pom.xml
      Deleting test\web-profile\flow\viewScoped
      Sending test\web-profile\pom.xml
      Adding test\web-profile\scope
      Adding test\web-profile\scope\pom.xml
      Adding test\web-profile\scope\view
      Adding test\web-profile\scope\view\pom.xml
      Adding test\web-profile\scope\view\src
      Adding test\web-profile\scope\view\src\main
      Adding test\web-profile\scope\view\src\main\java
      Adding test\web-profile\scope\view\src\main\java\com
      Adding test\web-profile\scope\view\src\main\java\com\sun
      Adding test\web-profile\scope\view\src\main\java\com\sun\faces
      Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test
      Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile
      Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile\scope
      Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile\scope\view
      Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile\scope\view\InvalidatedBean.java
      Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile\scope\view\ViewScopedBean.java
      Adding test\web-profile\scope\view\src\main\resources
      Adding test\web-profile\scope\view\src\main\webapp
      Adding test\web-profile\scope\view\src\main\webapp\WEB-INF
      Adding test\web-profile\scope\view\src\main\webapp\WEB-INF\beans.xml
      Adding test\web-profile\scope\view\src\main\webapp\WEB-INF\glassfish-web.xml
      Adding test\web-profile\scope\view\src\main\webapp\WEB-INF\web.xml
      Adding test\web-profile\scope\view\src\main\webapp\invalidatedPerform.xhtml
      Adding test\web-profile\scope\view\src\main\webapp\invalidatedSession.xhtml
      Adding test\web-profile\scope\view\src\main\webapp\invalidatedVerify.xhtml
      Adding test\web-profile\scope\view\src\main\webapp\otherPage.xhtml
      Adding test\web-profile\scope\view\src\main\webapp\viewScoped.xhtml
      Adding test\web-profile\scope\view\src\main\webapp\viewScoped2.xhtml
      Adding test\web-profile\scope\view\src\test
      Adding test\web-profile\scope\view\src\test\java
      Adding test\web-profile\scope\view\src\test\java\com
      Adding test\web-profile\scope\view\src\test\java\com\sun
      Adding test\web-profile\scope\view\src\test\java\com\sun\faces
      Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test
      Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile
      Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope
      Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope\view
      Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope\view\Issue2641IT.java
      Transmitting file data ......................
      Committed revision 11354.

      Show
      Manfred Riem added a comment - Applied to 2.2 trunk, svn commit -m "Fixes http://java.net/jira/browse/JAVASERVERFACES-2641 , r=rogerk, make sure the @ViewScoped CDI annotation uses the view map to store instances." Sending jsf-ri\conf\share\javax.enterprise.inject.spi.Extension Sending jsf-ri\src\main\java\com\sun\faces\application\NavigationHandlerImpl.java Sending jsf-ri\src\main\java\com\sun\faces\application\WebappLifecycleListener.java Adding jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeContext.java Adding jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeContextObject.java Adding jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeExtension.java Deleting jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopedCDIContext.java Deleting jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopedCDIExtension.java Sending test\web-profile\flow\pom.xml Deleting test\web-profile\flow\viewScoped Sending test\web-profile\pom.xml Adding test\web-profile\scope Adding test\web-profile\scope\pom.xml Adding test\web-profile\scope\view Adding test\web-profile\scope\view\pom.xml Adding test\web-profile\scope\view\src Adding test\web-profile\scope\view\src\main Adding test\web-profile\scope\view\src\main\java Adding test\web-profile\scope\view\src\main\java\com Adding test\web-profile\scope\view\src\main\java\com\sun Adding test\web-profile\scope\view\src\main\java\com\sun\faces Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile\scope Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile\scope\view Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile\scope\view\InvalidatedBean.java Adding test\web-profile\scope\view\src\main\java\com\sun\faces\test\webprofile\scope\view\ViewScopedBean.java Adding test\web-profile\scope\view\src\main\resources Adding test\web-profile\scope\view\src\main\webapp Adding test\web-profile\scope\view\src\main\webapp\WEB-INF Adding test\web-profile\scope\view\src\main\webapp\WEB-INF\beans.xml Adding test\web-profile\scope\view\src\main\webapp\WEB-INF\glassfish-web.xml Adding test\web-profile\scope\view\src\main\webapp\WEB-INF\web.xml Adding test\web-profile\scope\view\src\main\webapp\invalidatedPerform.xhtml Adding test\web-profile\scope\view\src\main\webapp\invalidatedSession.xhtml Adding test\web-profile\scope\view\src\main\webapp\invalidatedVerify.xhtml Adding test\web-profile\scope\view\src\main\webapp\otherPage.xhtml Adding test\web-profile\scope\view\src\main\webapp\viewScoped.xhtml Adding test\web-profile\scope\view\src\main\webapp\viewScoped2.xhtml Adding test\web-profile\scope\view\src\test Adding test\web-profile\scope\view\src\test\java Adding test\web-profile\scope\view\src\test\java\com Adding test\web-profile\scope\view\src\test\java\com\sun Adding test\web-profile\scope\view\src\test\java\com\sun\faces Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope\view Adding test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope\view\Issue2641IT.java Transmitting file data ...................... Committed revision 11354.
      Hide
      Manfred Riem added a comment -

      Applied to 2.2 trunk,

      svn commit -m "Fixes http://java.net/jira/browse/JAVASERVERFACES-2641, make sure we use identityHashCode when using the view map as a key."
      Sending jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeContext.java
      Adding test\web-profile\scope\view\nbactions.xml
      Sending test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope\view\Issue2641IT.java
      Transmitting file data ...
      Committed revision 11356.

      Show
      Manfred Riem added a comment - Applied to 2.2 trunk, svn commit -m "Fixes http://java.net/jira/browse/JAVASERVERFACES-2641 , make sure we use identityHashCode when using the view map as a key." Sending jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeContext.java Adding test\web-profile\scope\view\nbactions.xml Sending test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope\view\Issue2641IT.java Transmitting file data ... Committed revision 11356.
      Hide
      Manfred Riem added a comment -

      Applied to 2.2 trunk,

      svn commit -m "Fixes http://java.net/jira/browse/JAVASERVERFACES-2641, make sure we iterate over all view maps in a session when the session gets destroyed."
      Sending jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeContext.java
      Sending test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope\view\Issue2641IT.java
      Transmitting file data ..
      Committed revision 11360.

      Show
      Manfred Riem added a comment - Applied to 2.2 trunk, svn commit -m "Fixes http://java.net/jira/browse/JAVASERVERFACES-2641 , make sure we iterate over all view maps in a session when the session gets destroyed." Sending jsf-ri\src\main\java\com\sun\faces\application\view\ViewScopeContext.java Sending test\web-profile\scope\view\src\test\java\com\sun\faces\test\webprofile\scope\view\Issue2641IT.java Transmitting file data .. Committed revision 11360.

        People

        • Assignee:
          Manfred Riem
          Reporter:
          Manfred Riem
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: