JSF2.2,netbeans,ui:remove-Tag库支持。。。但是没有为name:remove定义标记

JSF2.2,netbeans,ui:remove-Tag库支持。。。但是没有为name:remove定义标记,jsf,netbeans,taglib,jsf-2.2,Jsf,Netbeans,Taglib,Jsf 2.2,新Netbeans安装引发以下错误: /index.xhtml @10,20 <ui:remove> Tag Library supports namespace: http://xmlns.jcp.org/jsf/facelets, but no tag was defined for name: remove /index.xhtml@10,20标记库支持命名空间:http://xmlns.jcp.org/jsf/facelets,但没有为name:remove定义标记 环境

新Netbeans安装引发以下错误:

/index.xhtml @10,20 <ui:remove> Tag Library supports namespace: http://xmlns.jcp.org/jsf/facelets, but no tag was defined for name: remove
/index.xhtml@10,20标记库支持命名空间:http://xmlns.jcp.org/jsf/facelets,但没有为name:remove定义标记
环境:

  • 产品版本:NetBeans IDE 7.4(构建201310111528)
  • Java:1.7.0_51;Java HotSpot(TM)64位服务器VM 24.51-b03运行时:
  • Java(TM)SE运行时环境1.7.0_51-b13
  • 系统:在x86_64上运行的Mac OS X版本10.9.1;UTF-8;德乌德(nb)
JSF页面:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<h:head>
    <title>Facelet Title</title>
</h:head>
<h:body>
    <ui:remove>throws an error</ui:remove>
    Hello from Facelets
</h:body>

Facelet标题
抛出错误
Facelets的你好

其他ui标记也可以工作

要重现此错误,只需运行newprojectweb应用程序向导并插入ui:remove标记。有人能重现这个错误吗

其他信息:

我将Netbeans更新为“更新:Netbeans IDE更新为版本Netbeans 7.4补丁2”。还是一样的例外


ui:remove不在具有较旧OSX(10.8.5)和较旧JDK(1.7.040)的类似计算机上引发异常。Rest相同的系统。

如果有人在Facelet上遇到类似的问题,例如

一个或多个资源的目标为“头”,但没有“头” 组件已在视图中定义

只需将javax.faces.jar更改为当前版本。为此:

首先:从glassfish安装中查找“模块”文件夹。在我的Mac电脑上是

/应用程序/NetBeans/glassfish-4.0/glassfish/modules/

Second:找到javax.faces.jar并用当前版本替换它(只需搜索网络并下载)。在我的例子中,它是javax.faces-2-2-5.jar,位于

第三:别忘了重新启动NetBeans