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.
我的标题错误,它在问
您是否使用了 head 而不是 h:head?
我开始使用 OpenFaces,将 JAR 添加到库中,并添加命名空间
xmlns:o="http://openfaces.org/"
我可以看到组件正常工作但没有样式。我正在使用一棵树,我可以展开它但不能关闭它。
我应该在某处添加一些CSS吗?
首先,我假设您<h:head>在 xhtml 页面中使用了标签(而不是普通<head>标签),正如错误消息所暗示的那样......
<h:head>
<head>
除此之外,您无需采取任何措施来使其正常工作而不会出现此错误(如果您使用的是基于 JSF 2.x 的 OpenFaces 版本)。
如果您使用的是 OpenFaces 3.0 版本(带有 JSF 2.x),那么尽管页面中有标签,但在某些配置中会显示此错误。尝试修复此问题<h:head>的当前夜间构建。