Tutorials > Management Center > Extend simple search in the Catalogs tool

< Previous | Next >


Create 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. In this lesson, you create and register the text label for the display name of the new simple search.


Procedure

  1. In the Enterprise Explorer view, navigate to LOBTools > Java Resources:src > com.mycompany.catalog.client.lobtools.properties.

  2. Double-click CatalogLOB_en_US.properties 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.

< Previous | Next >


+

Search Tips   |   Advanced Search