This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Property strings in Icefaces  RSS feed

 
David Brossard
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Apologies if this is a dumb and newbie question but googling didn't help me there.

I have sample icefaces code that uses a variable as follows:



I am intrigued by what msgs is. It seriously looks like a Property bean where 'page.inputFile.messages.label' is the property key. In that case, how do I declare it in my faces-config.xml file?

Any idea anyone?

Cheers,
David.
 
Philip Breau
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, #{msgs} probably refers to a Message Bundle. In JSF 1.1 this is declared with a <f:loadBundle> tag in the same view. And in JSF 1.2 it can be declared in the the faces-config.xml file in a <message-bundle> tag. There are a lot of good tutorials on JSF localization that should also help: http://www.javabeat.net/tips/102-implement-internationalization-and-localizati.html

Philip
 
David Brossard
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, this was spot on. For future reference, I also found this website with a great tutorial:

http://www.laliluna.de/javaserver-faces-message-resource-bundle-tutorial.html
 
Ed Burns
author
Ranch Hand
Posts: 82
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Brossard wrote:Thanks, this was spot on. For future reference, I also found this website with a great tutorial:

http://www.laliluna.de/javaserver-faces-message-resource-bundle-tutorial.html


Yes, that's Sebastian Hennebrueder's site. Very well considered.

Ed
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!