Cannot find annotated custom JSF2 component in jar

拥有回忆 提交于 2019-12-05 09:12:56
  • ensure that the JSF version in faces-config.xml is at least version 2
  • ensure there isn't a metadata-complete attribute in faces-config.xml set to true.
  • ensure that the class is either in WEB-INF/classes; or, if in a jar in WEB-INF/lib, that the jar contains a faces-config.xml (the spec doesn't require annotation scanning otherwise)
  • ensure there isn't a Panel2 component-type defined in an XML configuration file (this listing will take precedence)

See the JSF 2 spec; section 11.5.1.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!