Error “package javax.faces.bean does not exist” at import javax.faces.bean.ManagedBean

前端 未结 4 1380
-上瘾入骨i
-上瘾入骨i 2020-12-19 02:11

I am studying JSF from Oracle online tutorial. While building its example \"hello1\" on netbeans it gives the following error at the line import javax.faces.bean.Manag

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 02:33

    Add these 2 dependency in your project's pom.xml file

    
      com.sun.faces
      jsf-api
      2.1.7
    
    
      com.sun.faces
      jsf-impl
      2.1.7
    
    

    This will solve your dependency problem.

提交回复
热议问题