开发者

An alternative web framework (instead of JSF) to use with CDI

开发者 https://www.devze.com 2023-03-27 00:47 出处:网络
Is there other Java Web frameworks other than JSF which work well with CDI? \"Work well\" could be simply to have a template system which can access @Named beans.

Is there other Java Web frameworks other than JSF which work well with CDI? "Work well" could be simply to have a template system which can access @Named beans.

Rationale: I do not like the event-driven nature of JSF a lot, so my preferred answer would be an action-based web framework. A framework which also supports @ConversationScoped contexts and facelets would be perfect but any alternative (even an event-driven one) is an acceptable answer, the least for kill my curiosity开发者_StackOverflow社区 :)


There is a ready-to-use integration with Wicket - see here. Apart from that you can use any framework by providing some interceptor/filter that reaches into the CDI bean manager and looks up bean by name (perhaps via a custom ELResolver)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号