You can use generic Web UI Java classes to automatically populate localized versions
of lists and codes.
- com.sybase365.mobiliser.web.common.components.LocalizableLookupDropDownChoice.java
- com.sybase365.mobiliser.web.common.components.LocalizableLookupDropDownMultiChoice.java
To enable these classes to display localized key-value pairs:
- Have an entry in an *.xml properties file that maps the
lookup item values to localized strings. The resource key must use the format
lookup.[lookupName].[lookupValue].
- Include a lookup query in the database, which can be addressed by the resource
loader. The lookup name must be the primary key for the lookup query in the
database table.
- If there is no lookup query in the database, the key-value pairs must be in the
BasePage.xml file, in the above format.