In this lesson, you will create a property file
to be display in the Management Center for the new profile field.
You will use the StoreExtensionLibrary.lzx and StoreResourceBundleExt.lzx files
to import the new resource bundle package so it can be reference in
the store property view definition file.
Procedure
- In the Enterprise Explorer view, navigate to in
your workspace.
- Right-click Java Resources: src;
then create a package called com.mycompany.commerce.store.client.lobtools.properties.
- Right-click the com.mycompany.commerce.store.client.lobtools.properties package;
then click .
- In the File name field, enter StoreLOB_en_US.properties.
The file name is case-sensitive.
- Open the StoreLOB_en_US.properties file
for editing.
- Add the status information to display in the store profile
page for the new field.
storeManager = Store Manager
- Save your changes and close the file.
- Navigate to .
- Right-click the store directory; then
click to
create a new OpenLaszlo file.
- In the File name field, enter StoreResourceBundleExt.lzx
- Open the StoreResourceBundleExt.lzx file
for editing.
- Add the following code snippet:
<library>
<class name="stoStoreResourceBundleExt" extends="wcfResourceBundle" baseName="com.mycompany.commerce.store.client.lobtools.properties.StoreLOB">
<!-- Properties -->
<wcfResourceBundleKey name="storeManager"/>
</class>
<stoStoreResourceBundleExt id="stoStoreResourcesExt"/>
</library>
- Save your changes and close the file.
- In the store directory, open StoreExtensionsLibrary.lzx for
editing.
- Add the following
include
statement to
the body of the <library>
tag.<include href="StoreResourceBundleExt.lzx"/>
- Save your changes and close the file.
- Right-click LOBTools; select Build
OpenLaszlo Project.