Solved

JSF Return text from resource-bundle via Java bean

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
thymeleaf natural templating vs JSP 2 65
jar file executable 12 37
replace a word with other 1 40
object oriented programming comparison 5 52
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

930 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

14 Experts available now in Live!

Get 1:1 Help Now