Using Arabic as Locale

There are few steps needs to be taken care while you are working on multilingual application using ADF,

1. Make sure you have selected UTF-8 as part of contentType.

< contentType=”text/html;charset=UTF-8″/>

2. Add all supported locale in faces-context.xml->application->LocaleConfig

3. check for trinidad.xml for below properties,

 #{view.locale.language=='de' ? '.' : ','}

<!-- Set the decimal separator to comma for German -->
<!-- and period for all other languages -->
 #{view.locale.language=='de' ? ',' : '.'}

<!-- Render the page right-to-left for Arabic -->
<!-- and left-to-right for all other languages -->
 #{view.locale.language=='ar' ? 'true' : 'false'}


4. Create one managed bean and add one attribute strLocale. generate getter and setter for the same. Create another method changeLocale() and assign values to strLocale variable.
5. Specify <f:view locale=#{bean’sScope.strLocale}”>

6. Make sure you have added locale specific property files to the project.

6. Call changeLocale() on some actions. and you are done.

7. Make sure you are specifying skin file in trinidad-config.xml and based on current locale switch which one has to be displayed.

Refer –


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s