Troubleshoot: Warning logged for undefined property

After migrating from the Feature Pack 3.0.1 to Feature Pack 4, the OpenLaszlo Debugger posts a warning about an undefined displayName.

 

Problem

In your WebSphere Commerce Feature Pack 3.0.1 environment, you create a custom tool in the Management Center which extends wcfBusinessObjectEditor. After installing WebSphere Commerce Feature Pack 4 and enabling the Management Center feature, you access the Management Center. The OpenLaszlo debugger posts messages similar to the following examples:
WARNING @ToolTab.lzx#35: reference to undefined property 'displayName'
WARNING @ToolTab.lzx#54: reference to undefined property 'displayName'
WARNING @ToolTab.lzx#111: reference to undefined property 'displayName'

 

Solution

Within the WebSphere Commerce development workspace, complete the following tasks:

  1. Search for the following phrase in your *.lzx files:
    extends="wcfBusinessObjectEditor"
    

  2. For each file that extends the editor, add in the following displayName:
    <class name="myClass" extends="wcfBusinessObjectEditor" 
            displayName="${myResourceBundle.abcDisplayName.string}"
    
    where:

    • myClass is the class name that is extended

    • myResourceBundle is the resource bundle name

    • abcDisplayName.string is the display name

  3. Save the file changes and repeat steps 1 and 2 until all applicable files are corrected.