Eclipse + JSF + Spring Form = CANNOT_FIND_FACELET_TAGLIB

时间:2012-04-19 03:26:25

标签: spring jsf spring-mvc

<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html" 
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:form="http://www.springframework.org/tags/form" <-- CANNOT_FIND_FACELET_TAGLIB
        xmlns:s="http://www.springframework.org/tags"> <--  CANNOT_FIND_FACELET_TAGLIB
<ui:composition template="../../templates/master-page.xhtml">
    <ui:define name="title">Home</ui:define>
    <ui:define name="parentSelected">Restaurante</ui:define>
    <ui:define name="childSelected">Adicionar</ui:define>
    <ui:define name="content">
        bla
        ${teste}
        ${teste2}
        <h:button value="BLA" />
    </ui:define>
</ui:composition>
</html>

晚安我在使用Spring Form taglib在页面上使用spring创建表单时遇到了问题。使用jsf的xhtml,以便弹簧形式taglib不被识别。

1 个答案:

答案 0 :(得分:0)

你的类路径中应该有spring-servlet.jar,表格中的taglib存在于META-INF中。

相关问题