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

  • Home
  • SEARCH
  • 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 636409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:30:43+00:00 2026-05-13T20:30:43+00:00

i search a way how i can access a class in the sessionscope. I

  • 0

i search a way how i can access a class in the sessionscope.

I have this class:

@ManagedBean
@SessionScoped
public class UserManagerBean implements Serializable{...}

and i will access some fields from a other bean. How can i do this?

Thank you

  • 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-05-13T20:30:43+00:00Added an answer on May 13, 2026 at 8:30 pm

    You can do that by taking the bean as a @ManagedProperty of the other bean and then just access it as an usual property in the action methods.

    @ManagedBean
    public class OtherBean implements Serializable {
    
        @ManagedProperty(value="#{userManagerBean}")
        private UserManagerBean userManagerBean;
    
        // ...
    }
    

    It will be set directly after construction, so it wouldn’t be available in the constructor. If you’d like to do some init stuff which relies on its availablility, then make use of @PostConstruct:

        @PostConstruct
        public void init() {
            userManagerBean.doStuff();
            // ...
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to have the WPF controls inherited like this, public class BaseView :
I search a way to access to the parent, parent function of a class
I'm trying to figure out if there's a way I can search for a
So I can search the whole database but i need a way to change
Is there a way to search an XDocument without knowing the namespace? I have
I have this code: $(document).ready(function() { var url = https://graph.facebook.com/search?q=cinema&type=post; $.ajax({ type: POST, url:
I have this object of class Array >> answers_to_problem => [#<Answer id: 807, problem_id:
I'd like to have functionality like this: $parent->get_grandchildren_by_category({category => 'foo'}); I can do it
On my site, I can access a search function by going to mysite.com/search/search_term, where
Is there a way to search on www.qantas.com.au or other sites that don't use

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.