Yesterday, Paul Withers published an interisting article on how to customize pager labels using themes. Themes are indeed very powerful. I would like to show you a more advanced example to customize the pager labels according to the users language.
At is@web we are developing an application that is fully multi language enabled. This means, that all labels, messages and whatsoever comes from resource files. Using resource files, you can translate your application into any language.
All you have to do is to add the resource-bundle to your XPage
I use a static value for src= in this sample; our application calculates the src= value dynamically. The user can choose any available language at runtime.
We also have a managed bean that provides a method to access the resource bundle. I have blogged about this here.
In your theme, you can now calculate the value property of the control using this method.
I will show stuff like this in my #BLUG session: “XPages – Beyond The Basics”