Solved

JSF Return text from resource-bundle via Java bean

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Fibonacci challenge 11 84
Java Jpanels and Jframe 8 21
Java - Why doesn't this JFrame work 3 18
eclipse java  build path 6 25
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now