Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2 Sprint 13
    • Component/s: Managed Beans
    • Labels:
      None

      Description

      For JSF 2.2, it has been announced that the javax.faces.bean package may possible be deprecated in a future version. Advise is being given to use annotations from other appropriate Java EE specifications where possible (see JAVASERVERFACES_SPEC_PUBLIC-976).

      In practice this mostly boils down to using CDI managed beans.

      While those beans are a near drop-in replacement for JSF's native managed beans, one important feature is missing for them: the view scope (@ViewScoped).

      This scope is not that hard to add, as shown in Steven Verborgh's article Porting the ViewScoped JSF annotation to CDI and the availability of this annotation in e.g. Seam 3.

      Since the new @FlowScoped annotation requires a JSF implementation to provide a portable CDI extension that implements this scope (see JAVASERVERFACES_SPEC_PUBLIC-730), I wonder if we can ask the same for @ViewScoped?

        Issue Links

          Activity

          Show
          Ed Burns added a comment - - edited Safe to proceed when < http://hudson-sca.us.oracle.com/view/MOJARRA_ALL/job/MOJARRA_TRUNK_GLASSFISH_3_1_2_2_NO_CLUSTER/53/ > and < http://tim-vm9.us.oracle.com:7070/hudson/view/Mojarra%20Trunk/job/trunk-test-glassfish-3_1_2_2/173/ > are clean.
          Hide
          Ed Burns added a comment - - edited

          Modify the javadoc for javax.faces.bean.ViewScoped and javax.faces.view.ViewScoped to explicitly require that UIViewRoot.getViewMap() is used to store the beans.

          Show
          Ed Burns added a comment - - edited Modify the javadoc for javax.faces.bean.ViewScoped and javax.faces.view.ViewScoped to explicitly require that UIViewRoot.getViewMap() is used to store the beans.
          Hide
          Ed Burns added a comment -

          Modify the spec for Scoped Attribute ELResolver (table 5-14) so that it requires checking the view map after the request and before the session.

          Show
          Ed Burns added a comment - Modify the spec for Scoped Attribute ELResolver (table 5-14) so that it requires checking the view map after the request and before the session.
          Hide
          Ed Burns added a comment -

          Modify the spec for UIViewRoot.getViewMap(boolean) to explicitly state that the map is backed by the session. And that passing true will cause a new session to be created if one does not exist already.

          Show
          Ed Burns added a comment - Modify the spec for UIViewRoot.getViewMap(boolean) to explicitly state that the map is backed by the session. And that passing true will cause a new session to be created if one does not exist already.
          Hide
          Manfred Riem added a comment -

          Closing resolved issue out

          Show
          Manfred Riem added a comment - Closing resolved issue out

            People

            • Assignee:
              Ed Burns
              Reporter:
              arjan tijms
            • Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 48 minutes
                1h 48m