Why does the JSF 'binding' attribute cause the Seam error "@In attribute requires non-null value"?

Solution Verified - Updated -

Issue

  • If the "binding" attribute is specified by a Richfaces/JSF component, it causes the following Seam error.

    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
    

When attempting to bind my Richfaces component to a Conversation scoped EJB3 I receive the following exception

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.