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 7973697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:10:43+00:00 2026-06-04T08:10:43+00:00

A user can open another tab on a browser and look at the same

  • 0

A user can open another tab on a browser and look at the same site. In this case he will have the same session but a different view. As an exercise I am constructing a jsf, primefaces site. The user first logs in and his log in information is stored in the session bean. If he then opens another tab, he could look at different pages of the site with each tab looking at a different page. This information I need to capture in view bean.

My question is, if I am in the view bean how can I get information from the session bean? This may be impossible, in which case, what is the best way to solve the problem?

  • 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-04T08:10:45+00:00Added an answer on June 4, 2026 at 8:10 am

    I suppose it is possible. You can access wider scoped bean from more narrow ones. E.g. you can access any kind of bean from request scoped. And application scoped bean can be used by any other bean. Try to inject your session scoped bean to view scoped. Like here:
    http://www.mkyong.com/jsf2/injecting-managed-beans-in-jsf-2-0/

    Also here is almost duplicate of your question: JSF2 Can't reach SessionScoped bean from ViewScoped as ManagedProperty

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I want a have a C program that does this: 1. User will
What is the best way to keep session state between browser tabs? I have
I'm writing a website similar to Amazon. Each user can open a shop. Thus
I have a few links on my site that will need to show a
In MainWindow.xaml.cs I want to open another window. My code is this: WordToHtml.Window1 newForm
I have a Rails 3 application with a User class, and a tab-delimited file
I have an asp.net c# project and need to open another page (within the
I want users to browse my site from only one tab in their browser.
I'd like to be able to open another window for a user and use
I have a /payments interface where the user should be able to filter via

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.