Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 2.2 Sprint 8
    • Component/s: Managed Beans
    • Labels:
      None
    • Status Whiteboard:
      Hide

      size_large importance_medium

      Show
      size_large importance_medium

      Description

      Introduce a new scope (@AccessScoped), to implement the equivalent behavior of the myfaces orchestra project.

      Basically, a managed bean will keep it's state if "touched" in the invoke application or render phase.

      This way, state and flow management is greatly simplified.

        Activity

        Hide
        Jakob Korherr added a comment -

        If we do work in the scoping area, we should look at what MyFaces CODI provides (@ViewAccessScoped, @ConversationScoped and @WindowScoped).

        However, IMO scopes and bean management is provided by CDI now and thus JSF should not try to improve this area, but refer to CDI for bean management.

        Show
        Jakob Korherr added a comment - If we do work in the scoping area, we should look at what MyFaces CODI provides (@ViewAccessScoped, @ConversationScoped and @WindowScoped). However, IMO scopes and bean management is provided by CDI now and thus JSF should not try to improve this area, but refer to CDI for bean management.
        Hide
        gerhard_petracek added a comment -

        +1 for the comment of Jakob

        Show
        gerhard_petracek added a comment - +1 for the comment of Jakob
        Hide
        petermuir added a comment -

        What about JSF introducing new CDI scopes? This makes sense to me as these suggestions are really JSF specific.

        Show
        petermuir added a comment - What about JSF introducing new CDI scopes? This makes sense to me as these suggestions are really JSF specific.
        Hide
        Jakob Korherr added a comment -

        Hmm, why not let this be a task of CDI only (it was created to handle JSF managed beans in the first place --> "webbeans").

        Also you might wanna use some of this with Servlets too (take websockets for example), but you couldn't if you had no JSF arround.

        Please take a look at JAVASERVERFACES_SPEC_PUBLIC-976 to discuss where to go with Managed Beans and CDI!

        Show
        Jakob Korherr added a comment - Hmm, why not let this be a task of CDI only (it was created to handle JSF managed beans in the first place --> "webbeans"). Also you might wanna use some of this with Servlets too (take websockets for example), but you couldn't if you had no JSF arround. Please take a look at JAVASERVERFACES_SPEC_PUBLIC-976 to discuss where to go with Managed Beans and CDI!
        Hide
        kito75 added a comment -

        Isn't this feature the same as the Flash Scope? The only difference I see is the Flash API..

        Show
        kito75 added a comment - Isn't this feature the same as the Flash Scope? The only difference I see is the Flash API..
        Hide
        Ed Burns added a comment -

        After thinking about this some more, I agree with Kito that this is too similar to @FlashScoped. However, as Lincoln pointed out in his comments to the corresponding issue, JAVASERVERFACES-SPEC-PUBLIC-766, we have defined away the need for @FlashScoped.

        Show
        Ed Burns added a comment - After thinking about this some more, I agree with Kito that this is too similar to @FlashScoped. However, as Lincoln pointed out in his comments to the corresponding issue, JAVASERVERFACES-SPEC-PUBLIC-766, we have defined away the need for @FlashScoped.
        Hide
        Ed Burns added a comment -

        Too similar to Flash scope.

        Show
        Ed Burns added a comment - Too similar to Flash scope.
        Hide
        kito75 added a comment -

        We should at least consider allowing flash scope to be searched automatically like the other scopes. It's sort of a bastard child at this point. I can't find JAVASERVERFACES-SPEC-PUBLIC-766; why isn't there a need for @FlashScoped?

        Show
        kito75 added a comment - We should at least consider allowing flash scope to be searched automatically like the other scopes. It's sort of a bastard child at this point. I can't find JAVASERVERFACES-SPEC-PUBLIC-766; why isn't there a need for @FlashScoped?
        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:
            josefreire
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: