[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 948
  • Last Modified:

Using j_security_check in JSF2.0 (maybe even ICEFaces?)

  I'm creating kind of RIA using JSF2.0 (I'm using ICEFaces as well, but that's immaterial now). I want to stress that I never use full page refresh and I always use AJAX to update regions of page.
   Is there any way to implement  j_security_check that won't break my JSF life cycle and won't cause page refresh? ICEFaces answers are welcome but not required.
0
ffrreeaakk
Asked:
ffrreeaakk
  • 2
  • 2
1 Solution
 
ramazanyichCommented:
you can try approach which is described here http://www.javaworld.com/community/node/3675
0
 
Sathish David Kumar NArchitectCommented:
j_security_check is nothing but form security in Jsp it wont effect anything.

r u plan to use spring security??
0
 
ffrreeaakkAuthor Commented:
 
0
 
Sathish David Kumar NArchitectCommented:
@ffrreeaakk: is that correct answer your looking for ??????
 
0
 
ffrreeaakkAuthor Commented:
I was looking for a simple solution to implement security. I heard  j_security_check was  easy to implement, but it's not transparent to JSF. That's why I asked. Ramazanyich's solution was interesting but it was a hack. I considered Spring security but thet I discovered Servlet 3.0 methods login and logout.
These work great and fit JSF better than j_security_check and don't require any addtional libraries(like spring sec.).
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now