1
我想戰斧使用selectManyCheckbox但它不工作,我在我的web應用程序得到這個消息:MyFaces的戰斧不工作
警告:頁/資源/組件/標籤/ abaEdicaoFuncoesFuncionario.xhtml聲明瞭名稱空間http://myfaces.apache.org/tomahawk並使用標籤t:selectManyCheckbox,但沒有與名稱空間關聯的TagLibrary。
我使用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>
我使用戰斧1.1.11,MyFaces的2.1.6和primefaces 2.1.1 我該如何解決它?