从Richfaces 3.3.2最终迁移到Richfaces 4.0.0 [英] Migrating from richfaces 3.3.2 to richfaces 4.0.0 final

查看:47
本文介绍了从Richfaces 3.3.2最终迁移到Richfaces 4.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将Web应用程序从Richfaces 3.3.2迁移到4.0.0,所以我更改了web.xml文件中的必要内容(servlet映射".xhtml"并删除了Ajax4jsf过滤器). 我也将richfaces 3 jars更改为第4版,但现在我遇到了一些错误,不知道如何解决它们:

I'm trying to migrate a web application from richfaces 3.3.2 to 4.0.0 so I changed the necessary stuff in the web.xml file (servlet mapping ".xhtml" and removed Ajax4jsf Filter). I also changed the richfaces 3 jars to the 4th version but now I've got some errors and don't know how to resolve them:

The import org.ajax4jsf cannot be resolved
The import org.ajax4jsf cannot be resolved
The import org.ajax4jsf cannot be resolved
The import org.richfaces cannot be resolved
The import org.richfaces cannot be resolved
The import org.richfaces cannot be resolved
Incompatible conditional operand types UIComponent and UICalendar
UICalendar cannot be resolved to a type
HtmlToolTip cannot be resolved to a type
HtmlToolTip cannot be resolved to a type
HtmlToolTip cannot be resolved to a type
Incompatible conditional operand types UIViewRoot and AjaxViewRoot
AjaxViewRoot cannot be resolved to a type
AjaxViewRoot cannot be resolved to a type
org.ajax4jsf cannot be resolved to a type
EventsQueue cannot be resolved to a type
HtmlAjaxSupport cannot be resolved to a type
HtmlToolTip cannot be resolved to a type
Incompatible conditional operand types UIComponent and HtmlCalendar
HtmlCalendar cannot be resolved to a type
HtmlToolTip cannot be resolved to a type
HtmlToolTip cannot be resolved to a type
HtmlToolTip cannot be resolved to a type
HtmlToolTip cannot be resolved to a type
HtmlToolTip cannot be resolved to a type

请问有人可以帮我吗?

推荐答案

删除web.xml文件中的RichFaces 3.3 Ajax过滤器

Remove the RichFaces 3.3 Ajax Filter in web.xml file

         <filter>
                <display-name>RichFaces Filter</display-name>
                <filter-name>richfaces</filter-name>
                <filter-class>org.ajax4jsf.Filter</filter-class>
          </filter>

            <filter-mapping>
                <filter-name>richfaces</filter-name>
                <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
                <dispatcher>INCLUDE</dispatcher>
            </filter-mapping>

RichFaces 4.0.0最终打开的webmvc-config.xml文件将其添加

RichFaces 4.0.0 final open webmvc-config.xml file add this

       <bean id="flowController" class="org.springframework.webflow.mvc.servlet.FlowController">
            <property name="flowExecutor" ref="flowExecutor" />
            <property name="ajaxHandler">
                <bean class="org.springframework.faces.webflow.JsfAjaxHandler" />
            </property>
        </bean>

这篇关于从Richfaces 3.3.2最终迁移到Richfaces 4.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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