This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JSP and the fly likes JSF message in faces-config.xml itself Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSF message in faces-config.xml itself" Watch "JSF message in faces-config.xml itself" New topic

JSF message in faces-config.xml itself

Ali Manji

Joined: Sep 01, 2004
Posts: 3
Hi All, JSF Newbie Question:

Is it possible to use messages from a bundle within faces-config.xml?

For example in faces-config.xml I have the following:


I want to set some default values for a managed bean which contains an array whose values I want to show up in a listBox or comboBox for a JSF Faces page, rather than hard-coding english literals in the faces-config.xml like:


I'd rather reference the message bundle from from the application element type above? Is this possible? If not how does one configure default values through the file in an international-friendly way?

Thanks in advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62127

Moving to the Web Franeworks forum where the JSF-savvy hang out.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Consider Paul's rocket mass heater.
subject: JSF message in faces-config.xml itself