当我将taglib声明重铸为时,此问题消失了
<ui:composition 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:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
而不是使用<% %>
标签(无论如何,它们都不会与facelets一起使用)
并安装jsf-facelets-1.1.14.jar
。到目前为止,根本没有安装任何facelets jar!