org.apache.myfaces.extensions.cdi.core.api.scope.conversation
Annotation Type RestScoped


@Target(value={METHOD,TYPE,FIELD})
@Retention(value=RUNTIME)
@Inherited
@Documented
@NormalScope(passivating=true)
public @interface RestScoped

The scope is similar to @ConversationScoped but it will automatically end once the view get's invoked with a GET and the viewParams are different than on the previous invoke. The conversation will also get resetted when you hit a different View via a GET request. Be aware that PostRedirectGet (faces-redirect=true) might cause the conversation to end. If you use PRG only to display a result-page then it should not have immediate effect because all the information will also get transported via GET parameters. But be aware that the target page might again execute any bean initialization.



Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.