Richfaces not working without old ViewHandler?

别来无恙 提交于 2019-12-24 09:27:35

问题


In JSF application we are using richfaces (Final.3.3.3). In pom.xml there is dependency on jsf-api-2.0.2, jsf-impl-2.0.2 and jsf-facelets-1.1.15.jar, and in faces-config.xml there is <view-handler> configured like this:

<application>
  <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>

I know that in JSF2 you don't need jsf-facelets. You also don't need to configure <view-handler> in faces-config.xml. So I removed facelets jar and <view-handler> line from faces-config.xml. But when I did it, richfaces didn't work. E.g. rich:toolBarGroup is not shown.

There is javascript error "document.body is null" that comes from a4j javascript file.

Does richfaces need this specific ViewHandler from jsf-facelets?


回答1:


Richfaces 3.3.3 does not fully support all the features of JSF2 according to This. You still need facelets. Specifically, the following is quoted from the limitations list on that page:

RichFaces 3.3.3 does not support JSF 2 built-in facelets (VDL)

Facelets 1.1.15 should still be used because of dependencies in RichFaces from the Tag Handlers classes.




回答2:


Amorfis there is no way of using Richfaces 3.3.3 without adding ViewHandler and facelet-1.1.15 jar as it does not have full support for JSF 2.0..



来源:https://stackoverflow.com/questions/3567821/richfaces-not-working-without-old-viewhandler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!