Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8912781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:17:34+00:00 2026-06-15T04:17:34+00:00

Well I have created a web application using JSF 2.0. Everywhere I have used

  • 0

Well I have created a web application using JSF 2.0. Everywhere I have used session scope bean and because of that I am facing problem. 🙁 I will explain with below example.

I have list of users in dataTable. When I click on user, I see details of that user. Now when I right click on User A and click Open in new tab, I see details of User A in in new tab.

Now when I right click on User B and click Open in new tab, I see details of user B.

However when I go on tab (where user A details are there), and refresh that page, I see User B details.

How to overcome that so that if I refresh page, I will still see details of User A and not User B.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:17:35+00:00Added an answer on June 15, 2026 at 4:17 am

    Put the bean in the view scope instead.

    When opening the details page, you should send a GET request, not a POST request. Use a normal <h:link> which passes the user identifier along as a request parameter by <f:param> and have a converter in the target view to convert it to the proper model value.

    The session scope should be used for session scoped data only, such as logged-in user and its preferences.

    See also:

    • How to choose the right bean scope?
    • Creating master-detail pages for entities, how to link them and which bean scope to choose
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this web application that i have created using Wicket, Guice and JPA.
I'm new to Servlet containers and have created a web application using Tomcat 6.0.26.
I have created a maven web project using the below site. http://www.mkyong.com/maven/how-to-create-a-web-application-project-with-maven/ I have
I have created a Native Client application for the Google Chrome web browser that
i have created an IE band object (toolbar) that is working well. however, when
I have created a QDialog based app using Qt Creator and all is well
well I have that problem, im using a lightbox srcipt and im opening an
We have an application that is built with Excel as the front end using
I am working on an ASP.Net web application that must print dynamically created labels
I have an MVC3 application using NHibernate. I've created my own membership and role

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.