Creating new resource bundles for custom text strings

In the Management Center, all text labels and images are registered as resource bundles, and the strings of the text labels are defined in a property file.

About this task

In this lesson, you create and register the text label for the display name of your new simple search.


  1. In the Enterprise Explorer view, navigate to LOBTools > Java Resources:src >
  2. Double-click to open it in the default editor.
  3. Copy the following text into the file:
    findAllCatalogEntriesByWarrantySearchDefinition_DisplayName = All Catalog Entries By Warranty
  4. Save and close the file.
  5. Navigate to LOBTools > WebContent > WEB-INF > src > lzx > mycompany > catalog.
  6. Double-click extCatalogManagementResourceBundle.lzx to open it in the default editor.
  7. Add the following wcfResourceBundleKey definitions into the extCatalogResourceBundle class:
    <wcfResourceBundleKey name = "findAllCatalogEntriesByWarrantySearchDefinition_DisplayName" />
  8. Save and close the file.
  9. Right-click the LOBTools folder; then click Build OpenLaszlo Project. The project builds.
  10. Restart the WebSphere Commerce Test Server.