Authentication spring security jsf/facelets标记库无标记“;“认证”;

Authentication spring security jsf/facelets标记库无标记“;“认证”;,authentication,tags,spring-security,Authentication,Tags,Spring Security,我是新来的春天安全。我也使用JSF框架。在xhtml页面中,我使用spring安全标签。这一个有效: HOHO 但是,这些方法不起作用: 这给了我一个错误: /Welcome.xhtml @20,48 <sec:authentication> Tag Library supports namespace: http://www.springframework.org/security/tags, but no tag was defined for name: authenti

我是新来的春天安全。我也使用JSF框架。在xhtml页面中,我使用spring安全标签。这一个有效:

HOHO
但是,这些方法不起作用:


这给了我一个错误:

/Welcome.xhtml @20,48 <sec:authentication> Tag Library supports namespace: http://www.springframework.org/security/tags, but no tag was defined for name: authentication
/Welcome.xhtml@20,48标记库支持命名空间:http://www.springframework.org/security/tags,但没有为名称:身份验证定义标记
编辑 我试图在springsecurity.taglib.xml中添加以下内容:

<tag>
  <tag-name>authentication</tag-name>
  <handler-class>org.springframework.security.taglibs.authz.AuthenticationTag</handler-class>
</tag>

认证
org.springframework.security.taglibs.authz.AuthenticationTag
这是:

<tag>
   <tag-name>authentication</tag-name>
   <component>
        <component-type>org.springframework.security.taglibs.authz.AuthenticationTag</component-type>
   </component>
</tag>

认证
org.springframework.security.taglibs.authz.AuthenticationTag

但是没有一个为我工作。

请看:。嗨,瑞特什!我已经通过了这个链接,但在不识别名称空间“sec”时遇到了一个问题。但是现在问题不同了。。可以识别名称空间,这是sec:authorize正常工作的原因,但无法识别sec:authorification。这正是我的问题。再次谢谢你。好的。在springsecurity.taglib.xml中是否有“身份验证”标记名?我猜在几个版本之前,SpringSecurityJSF/facelets标记库中没有标记“身份验证”。使用完整的类名,因此显然不起作用。你试过#{request.userPrincipal.name}吗?非常感谢!这是必要的。所以也许这就是为什么他们取消了“身份验证”标签。。由于冗余。