JSF の 'binding' 属性により、Seam で "@In attribute requires non-null value" エラーが発生します
Issue
-
"binding" 属性が Richfaces/JSF コンポーネントにより指定されると、以下の Seam エラーが発生します。
javax.servlet.ServletException:/common/carrierLookupModal.xhtml @63,101 binding="#{carrierSearchAction.carrierTable}":Error writing 'carrierTable' on type com.whatever.example.common.action.CarrierSearchAction_$$_javassist_17 at Caused by: org.jboss.seam.RequiredException:@In attribute requires non-null value: carrierSearchAction.entityManager at org.jboss.seam.Component.getValueToInject(Component.java:2178) at org.jboss.seam.Component.injectAttributes(Component.java:1601) at org.jboss.seam.Component.inject(Component.java:1419) at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:45) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) ...47 more
Richfaces コンポーネントから Conversation スコープの EJB3 をバインドすると、以下の例外が発生します。
javax.el.PropertyNotFoundException:/actions/someXhtmlPage.xhtml @144,60 binding="#{MyBean.htmlView}":Target Unreachable, identifier 'MyBean' resolved to null
at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:95)
Environment
- JBoss Enterprise Application Platform (EAP)
- 4.x
- 5.x
- Seam
- 2.x
- Richfaces 3.x
- JSF 1.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.