Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于注释不起作用,我在我的 Netbeans 6.9/JSF2.0 项目中添加并一直在使用 faces-config.xml。不知道我做错了什么,但是当我使用注释时,我的 bean 完全无法访问。该项目的属性表明它确实是 JSF 2.0(而不是 1.1)。
自行解决。大小写问题。使用注释,bean 名称(在 xhtml 内)需要有一个前导小写字符,即使类是大写的。使用 XML faces 配置文件,它可以很好地大写...