How Do I Use @ConversationScoped

前端 未结 2 1026
夕颜
夕颜 2021-01-02 02:18

I am writing a JSF 2.0 application, and I want to use CDI annotations instead of the \"equivalent\" JSF annotations. In other words, @Model or @Named instead of @ManagedBe

2条回答
  •  清歌不尽
    2021-01-02 02:30

    That's way simpler with the (CDI) scopes of MyFaces CODI. They have a better @ConversationScoped and you will love the @ViewAccessScoped for what you are trying.

提交回复
热议问题