introduce a new RestScope for better GET support
------------------------------------------------

                 Key: EXTCDI-232
                 URL: https://issues.apache.org/jira/browse/EXTCDI-232
             Project: MyFaces CODI
          Issue Type: New Feature
          Components: Core, JEE-JSF20-Module
    Affects Versions: 1.0.1
            Reporter: Mark Struberg
            Assignee: Mark Struberg


For pages which are available per GET which uses <f:viewParam  /> we often have 
the problem that @ViewAccessScoped is too aggressive in destroying beans, but 
we still need to get new contextual instances once the GET parameters got 
changed.

By introducing a new @RestScoped and the respective Context implementation we 
can provide exactly that. A @RestScoped is a sub-context of @WindowScoped, thus 
every new browser tab will get a new contextual instance. 

The RestScope is basically a CODI Conversation (1 bean == 1 conversation) very 
similar to @ViewAccessScoped. The only difference is that those 2 have 
different expiry calculation mechanism.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to