O'Reilly logo

Learning PrimeFaces Extensions Development by Sudheer Jonna

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Internationalization support

Both the TimePicker and TimeLine components support Internationalization (I18N) to display localized text or labels. PrimeFaces Extensions only provides English locales. If you want to support multiple locales for multilanguage applications, then you need to add the locales with corresponding text in a JavaScript file and add it to your application. Based on the locale you selected, the corresponding text will be displayed for the component.

For example, add the following TimePicker and TimeLine locale JavaScript files in your application's resources folder to support French local text:

  1. Create the timepickerLocales.js file under the resources folder of your application with the following content:
    $(function() { PrimeFacesExt.locales.TimePicker['fr'] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required