Solved

JSF Return text from resource-bundle via Java bean

Posted on 2010-11-21
2
812 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

821 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