RichFaces4 don't render the components

后端 未结 2 1638
野趣味
野趣味 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:24

    At least in some cases nothing is being logged to the server log about the lack of <h:head>. Using just <head> in the facelets template with MyFaces 2.1.4, RichFaces 4.0.0 on WAS 7.0.0.13 results in the RichFaces components not rendering properly, but the a4j components working fine. Definitely something to be on the lookout for when migrating JSF1 projects.

    0 讨论(0)
  • 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 <head>. You need to ensure that you're using the JSF <h:head> component instead of plain HTML <head> 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 <h:head>. Keep an eye on the server logs.

    0 讨论(0)
提交回复
热议问题