的「產生的原因:」我的堆棧跟蹤的部分說:org.jboss.seam.RequiredException:@In屬性要求非空值:selectAccountPageBean.accountSessionBean
Caused by: org.jboss.seam.RequiredException:
@In attribute requires non-null value: selectAccountPageBean.accountSessionBean
頁作用域的bean有這個:
@Name("selectAccountPageBean")
@Scope(ScopeType.PAGE)
public class SelectAccountPageWidgetBean
extends BaseWidgetBean implements Serializable
{
...
@In(create = true)
private AccountSessionBean accountSessionBean;
...
}
會話範圍的bean有這樣的:
@Name("accountSessionBean")
@Scope(ScopeType.SESSION)
public class AccountSessionBean implements Serializable
{
...
}
當我指的是頁面作用域的bean從一個facelet,我得到錯誤。
我在其他應用程序中做了同樣的事情,它工作正常。有什麼配置價值,我失蹤的地方?
糾正......事實證明,我在查詢中引用了一個EL,它在另一個bean中引用了@Factory標記......它是一個剪切和粘貼的分離器...修復了EL引用,我很好去。 – 2013-02-12 17:40:41