RichFaces4 don't render the components

后端 未结 2 1642
野趣味
野趣味 2020-12-20 05:51

I try to run RichFaces4 app but the components don\'t render. For example when I try this demo: Demo I get something like this:

Here is an example of defaul         


        
2条回答
  •  一向
    一向 (楼主)
    2020-12-20 06:42

    That's what Crome Developer Tools told me http://img571.imageshack.us/i/rfnotdefined.jpg (Uncaught ReferenceError: RichFaces is not defined)

    This means that the necessary JavaScript files of RichFaces are not been supplied in the generated HTML . You need to ensure that you're using the JSF component instead of plain HTML in the template. This is namely mandatroy for the new JSF 2.0 resource injection mechanism, JSF and RichFaces will inject Ajax/UI-related JavaScripts/Stylesheets in there.

    I however wonder if anything has been logged in the server log about the lack of the . Keep an eye on the server logs.

提交回复
热议问题