I am using JSF2 and Spring Security. I know that if we want to hide some fields on the view we just use the render attribute. But if I want to prevent a logged user access to a view (by URL), how can I do that?
Does the SpringSecurity support any filters for this?
Thanks so much!
Asked
Active
Viewed 43 times
0

phanhongphucit
- 547
- 9
- 20
1 Answers
0
You have to write a Filter for this.
Restriction on Restricted pages when logged in answer should give you more details.
-
Thank Vikas V, I have a more question that if the SpringSecurity supported any filter for this or not? – phanhongphucit Jun 06 '13 at 06:36
-
@LatentBoy This should help [Spring security filter chain](http://static.springsource.org/spring-security/site/docs/3.0.x/reference/security-filter-chain.html) – Vikas V Jun 06 '13 at 06:42
-
This answer is so unhelpful. OP is using Spring Security and this answer doesn't seem to explain in any way how to configure Spring Security accordingly, but instead recommends to homegrow security using a custom filter, completely working around Spring Security. This makes no sense. – BalusC Jun 06 '13 at 18:07