• Post Reply Bookmark Topic Watch Topic
  • New Topic

myFaces

 
Alexandre Rimolo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone used Apache myFaces? My question is: is it posible to change the language that is showed in the calendar component? I have to use Brazilian Portuguese in name of months, but the app doesn't getting the system language.
 
Abhi Raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have the source code? The renderer does this function (org.apache.myFaces.custom.calendar.HtmlCalendarRenderer). There is a map of month index -> String month name. This looks like it should get the locale specific information, so try setting your language preferences in your browser and see if it works.

Otherwise you can always hard code this map to the Strings that you want !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!