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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:24:15+00:00 2026-05-31T14:24:15+00:00

My webapp requires a ResourceBundle that is dynamically created. Is it possible to somehow

  • 0

My webapp requires a ResourceBundle that is dynamically created. Is it possible to somehow push it inside FacesContext (or anywhere else, for that matter) so that it is later available from a view a la static RB? For example:

<h:outputText value="#{myDynaBundle['key.inside.dynamic.rb']}" />

By static RB I mean a bundle that is defined inside app-config.xml, such as:

<resource-bundle>
    <base-name>messages</base-name>
    <var>msg</var>
</resource-bundle>
  • 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-31T14:24:17+00:00Added an answer on May 31, 2026 at 2:24 pm

    Create a class which extends ResourceBundle and make it a managed bean.

    E.g.

    public class MyDynaBundle extends ResourceBundle {
    
        @Override
        protected Object handleGetObject(String key) {
            // Implement bundle value retrieval by key.
        }
    
        @Override
        public Enumeration<String> getKeys() {
            // If necessary, implement retrieval of all valid keys.
        }
    
    }
    

    which is registered as

    <managed-bean>
        <managed-bean-name>myDynaBundle</managed-bean-name>
        <managed-bean-class>com.example.MyDynaBundle</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a webapp using CodeIgniter that requires authentication. I created a model
I am developing a webapp that requires setting up a DataSource with JNDI using
I'm developing a webapp for a client that requires compatibility across most modern browsers
I have a webapp that requires security beyond that of a normal web application.
Lets say you have a web app related Android app that requires the user
Maybe theres another solution to this. I built a web app that requires 5-10
multiple webapp running on same tomcat using same jvm. sometime, one webapp that have
I have a webapp development problem that I've developed one solution for, but am
I am building a web application on Google App Engine that requires users to
I am creating a web app that requires the use of a Java Object

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.