RichFaces4不渲染组件

我尝试运行RichFaces4应用程序,但组件不呈现。 例如,当我尝试这个演示: 演示我得到这样的东西:

Here is an example of default tab panel with 3 tabs. j_id1475365623_57f04a9f j_id1475365623_57f04a9f j_id1475365623_57f04a9f j_id1475365623_57f04a75 j_id1475365623_57f04a75 j_id1475365623_57f04a75 j_id1475365623_57f04a6b j_id1475365623_57f04a6b j_id1475365623_57f04a6b « ↓ » Here is tab #1 Here is an example of tab panel switched in "ajax" style. Second tab is disabled. j_id1475365623_57f04a27 j_id1475365623_57f04a27 j_id1475365623_57f04a27 j_id1475365623_57f04a1d j_id1475365623_57f04a1d j_id1475365623_57f04a1d j_id1475365623_57f04bf3 j_id1475365623_57f04bf3 j_id1475365623_57f04bf3 « ↓ » Here is tab #1 Here is an example of tab panel switched completely on client. j_id1475365623_57f04bcf j_id1475365623_57f04bcf j_id1475365623_57f04bcf j_id1475365623_57f04ba5 j_id1475365623_57f04ba5 j_id1475365623_57f04ba5 j_id1475365623_57f04b9b j_id1475365623_57f04b9b j_id1475365623_57f04b9b « ↓ » Here is tab #1 Here is tab #2 Here is tab #3 

我的代码与演示中的代码几乎相同。 我刚刚添加了表单标签,因为它抱怨它。

  

Here is an example of default tab panel with 3 tabs.

Here is tab #1 Here is tab #2 Here is tab #3

Here is an example of tab panel switched in "ajax" style. Second tab is disabled.

Here is tab #1 Here is tab #2 Here is tab #3

Here is an example of tab panel switched completely on client.

Here is tab #1 Here is tab #2 Here is tab #3

这就是Crome开发者工具告诉我的内容http://sofzh.miximages.com/java/ (未捕获的ReferenceError:RichFaces未定义)

这意味着生成的HTML 中未提供RichFaces所需的JavaScript文件。 您需要确保在模板中使用JSF 组件而不是纯HTML 。 这就是新JSF 2.0资源注入机制的mandatroy,JSF和RichFaces将在那里注入与Ajax / UI相关的JavaScripts / Stylesheets。

但是我想知道服务器日志中是否记录了缺少 。 密切关注服务器日志。

至少在某些情况下,没有任何内容记录到服务器日志中缺少 。 使用MyFaces 2.1.4的facelets模板中的 ,WAS 7.0.0.13上的RichFaces 4.0.0会导致RichFaces组件无法正常呈现,但a4j组件工作正常。 在迁移JSF1项目时,一定要注意什么。