The moose likes JSF and the fly likes xhtml files and spring-security. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "xhtml files and spring-security." Watch "xhtml files and spring-security." New topic

xhtml files and spring-security.

samantha clarkson
Ranch Hand

Joined: Sep 09, 2008
Posts: 56
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

farm rubbit hihihihihihi, be aware !!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

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.

An IDE is no substitute for an Intelligent Developer.
samantha clarkson
Ranch Hand

Joined: Sep 09, 2008
Posts: 56
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=""

that is all .
I agree. Here's the link:
subject: xhtml files and spring-security.
It's not a secret anymore!