JSF1064在使用taglib.xml中定义的标签时

时间:2015-01-20 13:02:16

标签: jsf warnings custom-component taglib

我已根据JSF ui:repeat in ui:repeat with dynamically assigned var-value中的说明为我们的项目创建了自己的自定义myfw:repeat代码,并在myfw.taglib.xml中定义了

<?xml version="1.0"?>
<facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
    version="2.0" id="myfw">

    <namespace>http://company.at/myfw</namespace>
    <composite-library-name>myfw</composite-library-name>

<!-- Other tags -->

    <tag>
        <tag-name>repeat</tag-name>
        <component>
            <component-type>at.company.myfw.jsf.component.repeat.UIRepeatForFloatingTable</component-type>
        </component>
    </tag>
</facelet-taglib>

页面中使用的标记工作正常,但每次查看页面时都会显示警告消息:

13:03:30,577 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http-/127.0.0.1:8080-2) JSF1064: Unable to find or serve resource, repeat.xhtml, from library, myfw.

显示在日志中。这不仅仅是重复标记的情况,它也发生在taglib中定义的每个标记,如ui:compositions。因此,日志目前被这些消息垃圾邮件,但页面/标签正常工作。当前的解决方法是更改​​日志级别,但它不是所需的解决方案。使用EAP 6.2.0.GA和Mojarra 2.1.19。

1 个答案:

答案 0 :(得分:1)

这是Mojarra的一个错误。它在Development阶段过于急切地将JSF1064记录在<composite-library-name>中无法找到的标记文件中,而它仍应继续通过直接注册的<tag>条目进行处理taglib本身。

这不是你的错。这些警告未在Production阶段记录。我将此问题报告为JAVASERVERFACES-3696更新:仅在几个小时后修复,将根据Mojarra 2.3.0-M02提供。)