spring security jsf/facelets tag library no tag "authentication" -


i'm new spring security. use jsf framework too. in xhtml page use spring security tags. 1 works :

<sec:authorize access="hasrole('role_user')">hoho</sec:authorize> 

however, these ones don't work :

<sec:authentication property="name" /> <sec:authentication property="principal.name" /> <sec:authentication property="principal" /> 

and gives me error:

/welcome.xhtml @20,48 <sec:authentication> tag library supports namespace: http://www.springframework.org/security/tags, no tag defined name: authentication 

edit tried add in springsecurity.taglib.xml :

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

and :

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

but none of them worked me.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -