0
我正在尝试在Facelets中使用spring安全性。 当我使用秒:授权在我的网页我有这样的错误:<sec:authorize generate Facelets模板生成无效路径错误
<ui:composition template="/template.xhtml"> Invalid path :/template.xhtml
,一切工作正常,如果我删除<sec:authorize
这里是我的Facelets文件:
<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:pe="http://primefaces.org/ui/extensions"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core" template="/template.xhtml"
xmlns:sec="http://www.springframework.org/security/tags">
<ui:define name="title">
HOME
</ui:define>
<ui:define name="form">
<p:panelGrid id="homeGrd" columns="4" >
<f:facet name="header">
List of Accounts
</f:facet>
<sec:authorize access="hasAnyRole('ROLE_ADMIN')">
<h:panelGroup layout="block" style="padding: 0 0 3px 0;">