Solved

JSF Return text from resource-bundle via Java bean

Posted on 2010-11-21
2
811 Views
Last Modified: 2012-05-10
Lets say I have set up resource bundles like this:
<resource-bundle>
                <base-name>timeRegistration.messages</base-name>
                <var>msgs</var>
</resource-bundle>

I have a bean with a function like this:

public String getStatus() {
   return status;
}

Lets say status was a string with a text of a given language to be displayed on the web page. Is there a way to get that text from my resource-bundle, so that it would always be in the right locale?
0
Comment
Question by:itnifl
2 Comments
 
LVL 17

Accepted Solution

by:
sweetfa2 earned 250 total points
ID: 34185770
0
 
LVL 2

Author Closing Comment

by:itnifl
ID: 34194151
Thank you!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ArrayIndexOutOfBoundException 9 83
Java - Why doesn't this JFrame work 3 59
Basic Java Case or If-Else statement... 3 51
Glassfish admin console not working 1 15
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question