• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xhtml files and spring-security.

 
samantha clarkson
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody

I have a big problem , i have a web application (using spring, hibernate, JSF, Icefaces, and spring-security), the problème is : to use IceFaces library we have to use xhtml web pages only, and it is not compatible with spring-security ( which work only with jsp files), my question is how to use jsp files with IceFaces component so i can use spring-security tags also

I'am waiting your opinions
Xiao
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't done that much with Spring Security, but I'm doubtful that it really has trouble with xhtml (facelets) JSF pages. Spring is too good at keeping on top of things.

One thing that JSF in general - Facelets or otherwise - does require that traditional J2EE doesn't is the use of the "redirect" navigation element to ensure that the rules are being checked properly. That's because the container security checks URLs, not resource filenames, and the redirect indicator ensures that references to secure resources (such as xhtml pages) aren't made using insecure URLs.
 
samantha clarkson
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Tim,

First Thank you for your reply.
the problem is resolved, what we done is adding a new library called facelets-jsf-spring-taglib and in xhtml files we have to add the namespace xmlns:security="http://www.springframework.org/security/facelets/tags"

that is all .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic