Which should we choice between javax.faces.bean.XScoped and javax.enterprise.context.XScoped
来源:互联网 发布:身份证登记软件下载 编辑:程序博客网 时间:2024/05/18 17:54
JSF+CDI+…
Which should we choice between
javax.faces.bean.XScoped and
javax.enterprise.context.XScoped
“Should I use javax.faces.bean.Request/Session/ApplicationScoped or javax.enterprise.context.Request/Session/ApplicationScoped?
Since CDI 1.0
Both annotation groups originate from different APIs, and have been specified (more or less) independently. While the JSF scope annotations have a clear focus on the JSF view technology, CDI requires scope annotations that are present, no matter if JSF is deployed or not (CDI can be used without JSF). So CDI had no choice but defining it’s own scopes. Unfortunately, Java EE 6 did not align this very well.
You should always use scopes from javax.enterprise.context when using CDI”
from:
http://www.cdi-spec.org/faq/#accordion0
阅读全文
1 0
- Which should we choice between javax.faces.bean.XScoped and javax.enterprise.context.XScoped
- javax.faces.context Class PartialResponseWriter
- JSF--javax.faces.context.FacesContext
- JSF 2.0/2.1的javax.faces.bean.ViewScoped与JSF 2.2的javax.faces.view.ViewScoped
- TROUBLESHOOTING: "java.lang.ClassNotFoundException: javax.faces.context.FacesContextFactory"
- javax.faces.el.PropertyNotFoundException
- NoSQL Databases, why we should use, and which one we should choose
- javax.faces.view.facelets.ResourceResolver
- 用JSF1.2时提示could not find Factory: javax.faces.context.FacesContextFactory解决办法
- 用JSF1.2时提示could not find Factory: javax.faces.context.FacesContextFactory解决办法
- Which programing langauage should we choose?
- Eclipse中无法引入javax.Faces.*
- javax.faces.application.ViewExpiredException的解决方案
- javax.faces.FacesException: java.lang.LinkageError解决办法
- javax.faces.application.ViewExpiredException: View could not be restored
- jsf出现java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
- 解决The import javax.faces cannot be resolved
- Factory 'javax.faces.render.RenderKitFactory' was not configured properly.
- 小程序怎么打断点
- Android 7.0 去电流程
- 代码干货 | H5和NA(WebView)的交互
- 敌兵布阵
- 部门递归处理
- Which should we choice between javax.faces.bean.XScoped and javax.enterprise.context.XScoped
- 数据结构实验之链表七:单链表中重复元素的删除
- 79. Word Search
- Servlet 监听器----ServletRequest
- 五大常用算法之三:贪心算法
- 一些实用网站
- 文章标题
- java 最长公共子序列(LSC)问题
- [译]图像分类:数据驱动方法、K-最近邻、train/val/test分离 (2)