如果没有旧的ViewHandler,Richfaces无法正常工作吗? [英] Richfaces not working without old ViewHandler?

查看:122
本文介绍了如果没有旧的ViewHandler,Richfaces无法正常工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JSF应用程序中,我们使用richfaces(Final.3.3.3).在pom.xml中,对jsf-api-2.0.2jsf-impl-2.0.2jsf-facelets-1.1.15.jar具有依赖性,而在faces-config.xml中,对<view-handler>的配置如下:

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>

我知道在JSF2中您不需要jsf-facelets.您也不需要在faces-config.xml中配置<view-handler>.因此,我从faces-config.xml中删除了facelets jar和<view-handler>行.但是当我这样做的时候,丰富的面孔是行不通的.例如. rich:toolBarGroup未显示.

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.

存在来自a4j javascript文件的javascript错误"document.body为null".

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

richfaces是否需要jsf-facelets中的此特定ViewHandler?

Does richfaces need this specific ViewHandler from jsf-facelets?

推荐答案

Richfaces 3.3.3不完全支持JSF2的所有功能,根据

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不支持JSF 2内置facelets(VDL)

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

Facelets 1.1.15仍应使用,因为Tag Handlers类对RichFaces有依赖性.

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

这篇关于如果没有旧的ViewHandler,Richfaces无法正常工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆