Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 10 IE Certificate Issue 10 51
Tomcat: Unable to run tomcat service. 2 23
jmss example java 2 23
hashmap order 17 37
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

856 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