O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

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

Time for action – displaying a multipage calendar with Localization and the dateSelect event listener

Let us see how we can display an inline calendar with multiple months displayed in the French locale and register the dateSelect event listener.

  1. Configure the locale-specific Calendar labels in the calendarLocales.js file and save it in the resources/js folder:
    <script type="text/javascript"> PrimeFaces.locales['tr'] = { closeText: 'kapat', prevText: 'geri', nextText: 'ileri', currentText: 'bugün', monthNames: ['Ocak','Subat','Mart','Nisan','Mayis','Haziran','Temmuz','Agustos','Eylül','Ekim','Kasim','Aralik'], monthNamesShort: ['Oca','Sub','Mar','Nis','May','Haz', 'Tem','Agu','Eyl','Eki','Kas','Ara'], dayNames: ['Pazar','Pazartesi','Sali','Çarsamba','Persembe','Cuma','Cumartesi'], ...

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