Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 2 我的脸战斧坏了_Jsf 2_Myfaces_Tomahawk - Fatal编程技术网

Jsf 2 我的脸战斧坏了

Jsf 2 我的脸战斧坏了,jsf-2,myfaces,tomahawk,Jsf 2,Myfaces,Tomahawk,我正在尝试使用tomahawk的selectManyCheckbox,但它不起作用,我在web应用程序中收到以下消息: 警告:页面/resources/components/tabs/abaediaofuncoesfunconario.xhtml声明命名空间并使用标记t:selectManyCheckbox,但没有与命名空间关联的标记库 我在这里使用selectManyCheckbox: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui

我正在尝试使用tomahawk的selectManyCheckbox,但它不起作用,我在web应用程序中收到以下消息:

警告:页面/resources/components/tabs/abaediaofuncoesfunconario.xhtml声明命名空间并使用标记t:selectManyCheckbox,但没有与命名空间关联的标记库

我在这里使用selectManyCheckbox:

<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"
xmlns:t="http://myfaces.apache.org/tomahawk">
<ui:component>
<h:panelGroup layout="block" styleClass="hrgi-div-form clearfix tamanho-aba-cadastro">
    <t:selectManyCheckbox id="selectFuncoes" value="#{funcionario.funcoes}" layoutWidth="2">
        <f:selectItems value="#{carregadorFuncoesFuncionario.itens}" />
    </t:selectManyCheckbox>
</h:panelGroup>
</ui:component>
</html>
并通过以下方式配置web.xml:

<filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
    <init-param>
        <param-name>uploadMaxFileSize</param-name>
        <param-value>20m</param-value>
    </init-param>
</filter>

<filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
</filter-mapping>

<filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
我使用的是Tomahawk 1.1.11、myfaces 2.1.6和primefaces 2.1.1
如何解决这个问题?

确保您使用的不是JSF 1.2,所有Tomahawk JAR文件都放在/WEB-INF/lib文件夹中,并且服务器日志中没有出现与此相关的错误/警告