How Do I Use @ConversationScoped

前端 未结 2 1002
夕颜
夕颜 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.

    0 讨论(0)
  • 2021-01-02 02:44

    update: JSF 2.2 (jsr 344, in early draft review) is adding an @FlowScoped CDI scope for this. More info...

    0 讨论(0)
提交回复
热议问题