历史 | 登录     查看当前页的打印版本.  
问题详情 (XML | Word | Printable)

Key: EASYJWEB-37
类型: 问题 问题
状态: Resolved Resolved
解决: Fixed
优先级: Major Major
开发者: tianyi
报告人: tianyi
投票: 0
关注人: 0
操作

复制 问题
创建 子任务
如果你是 登录 你不能看到更多操作.
easyjweb

继承自com.easyjf.web.components.RichComponentAction的类如果配置注入方式"AutoJnjectByType"会出错

创建: 27/二月/08 02:46 下午   更新: 27/二月/08 02:47 下午
模块:
影响版本:
修复版本:

环境: easyjweb1.1


 描述  « Hide
继承自com.easyjf.web.components.RichComponentAction的类如果配置注入方式"AutoJnjectByType会出现异常:"无法加载属性指定名称的Bean:class com.easyjf.web.Page",导致程序无法运行。
包括两种情况(已知的):
1、使用@Action注解并且没有指定disInject属性。
2、使用xml文件配置module是inject设置为"byType"。
原因是在com.easyjf.web.components.RichComponentAction这个类中有一个Page类型属性:componentPage,这个属性是不能注入的,而这个属性并没有标注为@InjectDisable,因此在使用这个类的时候会去自动注入这个属性,从而出错。
其它可能出现这个错误的情况暂时还没有发现,但是可以一次全部解决这个问题。
解决办法:
给com.easyjf.web.components.RichComponentAction.componentPage加上@InjectDisable注解。
目前svn上的代码已经更正这一错误。

 所有   备注   改动记录      排列顺序:
tianyi - 27/二月/08 02:47 下午 - edited
svn中的代码已解决该问题,发布版还存在这个问题!