迁移到JSF 2.2后名称空间错误 [英] Error in Name Space after migrating to JSF 2.2

查看:125
本文介绍了迁移到JSF 2.2后名称空间错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

迁移到JSF2.2后,我面临以下问题

I am facing below issue, after I migrated to JSF2.2

 com.sun.faces.config.ConfigurationException: The tag named passThroughAttribute from namespace http://xmlns.jcp.org/jsf/core has a null handler-class defined
    at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processHandlerClass(FaceletTaglibConfigProcessor.java:422) [:2.2.0]
    at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:378) [:2.2.0]
    at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:321) [:2.2.0]
    at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:270) [:2.2.0]
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:437) [:2.2.0]
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214) [:2.2.0]

我也根据规范进行了更改,我通过以下url进行了更改: http://jsfcorner.blogspot.in

I have made changes as per specifications as well I went through below url : http://jsfcorner.blogspot.in

我的更改如下:

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:f="http://xmlns.jcp.org/jsf/core"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">

,还包括直通

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:f="http://xmlns.jcp.org/jsf/core"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
    xmlns:p="http://primefaces.org/ui">

推荐答案

在第一个Mojarra版本2.2.0和2.2.1中,如何处理新的xmlns.jcp.org XML名称空间.除其他外,他们忽略了正确注册新的JSF 2.2组件/标签/属性/处理程序的方法.根据 issue 2900 在Mojarra 2.2.2中已对其进行了修复(注意:发行票证描述了问题症状有所不同,但在本质上,原因是相同的.)

The way how the new xmlns.jcp.org XML namespaces are been handled is broken in the first Mojarra releases 2.2.0 and 2.2.1. Among others, they overlooked to properly register the new JSF 2.2 components/tags/attributes/handlers. It has been fixed in Mojarra 2.2.2 as per issue 2900 (note: issue ticket describes different problem symptom, but under the covers, it's essentially the same cause).

因此,至少升级到Mojarra 2.2.2应该可以解决您的问题.目前已经是2.2.5版的 .

So, upgrading to at least Mojarra 2.2.2 should fix your problem. It's currently already at 2.2.5.

这篇关于迁移到JSF 2.2后名称空间错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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