Solved

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

Posted on 2011-09-03
5
902 Views
Last Modified: 2012-05-12
  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
Comment
Question by:ffrreeaakk
  • 2
  • 2
5 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 36480394
you can try approach which is described here http://www.javaworld.com/community/node/3675
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 36484648
j_security_check is nothing but form security in Jsp it wont effect anything.

r u plan to use spring security??
0
 
LVL 2

Author Closing Comment

by:ffrreeaakk
ID: 36538228
 
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 36538517
@ffrreeaakk: is that correct answer your looking for ??????
 
0
 
LVL 2

Author Comment

by:ffrreeaakk
ID: 36538738
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now