Solved

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

Posted on 2011-09-03
5
910 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Timer (static) 9 43
Basic Java Case or If-Else statement... 3 50
how to install java on RHEL image on EC2 4 27
Java Restore security prompts not working 10 11
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

770 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