• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Going to previous state in JSF

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello to All
I am facing a little problem. When I am not logged in to my system and when I ask browser to redirect me to some page in my application it takes me to login screen and loads default screen.

Suppose I want to redirect my self to Admin Panel page. My application redirects me to Login page for Login. But afer successfull login I am redirected to say "Welcome" page. Please tell me that how I can avoid it. If I pass the address of my Admin Panel page then I want my application to take me to a page of Admin Panel after successful login rather than taking to default page.

I hope you get my question

Regards
Syed Muhammad Ali Naqvi
 
Greenhorn
Posts: 14
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your application using any phaseListener?

check your faces.config file!!

Many a times, the phase listener checks if the user requesting the page (say admin page) is a valid user who has logged in through the login page?
if the user is not logged in and user data is not in the session. the phase listeners redirects you to login page and asks you to login first.

once you login you can hit the admin page and you wont be redirected.

i hope i got your question right.
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic