This appendix discusses how to register provider classes so that you can enable locale switching through query parameters in Oracle WebCenter.
To support locale switching by using the WCGS_PreferredLanguage=LangCode query parameter, you must manually register the URLBaseProvider class.
You can do that manually or by using a WebLogic Scripting Tool (WLST) command.
Manual Registration
To register the provider class manually:
Using a text editor, open the adf-config.xml file.
Find the adf-config element and enter the following xml inside the tag:
<adf-webcenter-generalsettings-config xmlns=⇒ "http://xmlns.oracle.com/webcenter/generalsettings/config"> <provider-class> oracle.webcenter.generalsettings.model.provider.⇒ URLBaseProviderprovider </provider-class> </adf-webcenter-generalsettings-config>
Save the file.
WLST Registration
To use WLST to register the provider class:
Open the WebLogic Scripting Tool.
Run this command:
setWebCenterGeneralSettingsProvider('webcenter',⇒ 'oracle.webcenter.generalsettings.model.provider.URLBaseProvider')
Note. The first parameter is the application name. The second parameter is the providerClass. Sometimes you must supply a third parameter.
or this command:
setWebCenterGeneralSettingsProvider('webcenter',⇒ 'oracle.webcenter.generalsettings.model.provider.URLBaseProvider',⇒ 'WLS_Spaces1')
Note. The third parameter is the spaces cluster service name or spaces service name.
Restart the server.
See Also
Oracle® Fusion Middleware Web User Interface Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1.5.0), “Getting Started Using the Oracle WebLogic Scripting Tool.” http://download.oracle.com/docs/cd/E21764_01/core.1111/e10105/getstart.htm#CHDGGEAE