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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:24:20+00:00 2026-05-22T11:24:20+00:00

I have a session bean FooSessionBean which has a boolean property: visible . I

  • 0

I have a session bean FooSessionBean which has a boolean property: visible.

I want to change the value of the visible property from my FooRequestBean. Is there any way to do this, other than changing the scope of FooRequestBean to session instead of request (to be able to inject FooSessionBean into my FooRequestBean)?

Thanks in advance.

Ps: I’m using JSF 1.2

  • 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-22T11:24:20+00:00Added an answer on May 22, 2026 at 11:24 am

    Create a FooSessionBean property (getter/setter) in FooRequestBean and inject it using the faces-config.xml:

    <managed-bean>
      <managed-bean-name>fooRequestBeanName</managed-bean-name>
      <managed-bean-class>foo.FooRequestBean</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
      <managed-property>
        <property-name>fooSessionBeanPropName</property-name>
        <property-class>foo.FooSessionBean</property-class>
        <value>#{sessionScope.fooSessionBeanName}</value> 
      </managed-property>
     //etc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dataTable which has a value of a bean class which looks
I have a table (session) in a database which has almost 72,000 rows. I
I have a session bean that uses Bean managed txns. This bean has one
I have a session scoped managed bean, with a property current . If I
I have a stateless session bean which needs access to a factory class. Is
I'm studying EJB3. I have a session bean which provides services to create/update customer
I have a servlet code which invokes a stateful session bean code and increment
I have a session scoped managed bean with name 'usermanager'. i want to store
I have a Stateless Session Bean (java ee 6, cdi) which throw events @Stateless
I have already one session scoped CDI bean, which keeps currently logged in user

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.