简体   繁体   English

在使用Richfaces和Facelets开发.xhtml文件时,如何删除在Eclipse的Java构建路径中找不到的Message Ui:include?

[英]How to remove Message Ui:include not found on java build path in eclipse, While developing .xhtml file using richfaces and facelets?


I am getting error message like... 我收到类似...的错误消息

The tag handler class for "ui:include" (null) was not found on the Java Build Path

when i placed or in my .xhtml file. 当我放置在.xhtml文件中时。

What is the reason behind this.. 这是什么原因。

I am using: 我在用:

jsf 1.2
RichFaces 3.3

The reason for this errors is jsf-ui.tld file. 出现此错误的原因是jsf-ui.tld文件。

Which define an empty <tag-class></tag-class> elements. 其中定义了一个空的<tag-class></tag-class>元素。

Try to remove the .tld from your build path. 尝试从构建路径中删除.tld。 This will disable content assistant but surely will remove this annoying error messages. 这将禁用内容助手,但肯定会删除此烦人的错误消息。

The tag <ui:include> is a components from Facelets library. 标签<ui:include>Facelets库中的组件。 In order to use it in your web-application, you must first add the jsf-facelets.jar in your application classpath, and then, in each XHTML page that will use some of the <ui:xxx/> components, add the xmlns:ui="http://java.sun.com/jsf/facelets" namespace: 为了在Web应用程序中使用它,必须首先在应用程序类路径中添加jsf-facelets.jar ,然后在将使用某些<ui:xxx/>组件的每个XHTML页面中,添加xmlns:ui="http://java.sun.com/jsf/facelets"命名空间:

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    ...>
    ...
</html>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM