1 Reply Latest reply on Mar 28, 2011 8:43 AM by ssilvert

    JSFUnit 2.0.0 example @ManagedBean JSF 2 annotation not working

    susmit_shukla

      Hello,

      I extended the JsfUnit 2.0.0 Beta1 example to use JSF 2.0 annotations, i.e. added a new JSF Bean using @ManagedBean but ran into this exception. Running on Jetty 7

       

      javax.el.PropertyNotFoundException: /hello.xhtml @14,56 value="#{helloBean.name}": Target Unreachable, identifier 'helloBean' resolved to null

          at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100)

          at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:95)

       

      Putting <managed-bean> section in faces-config.xml instead of pure annotations solved this issue.

      My question is: Are JSF 2.0 annotations supported with JSFunit 2.0/Arquillian/Jetty? How to get them work?