Creating and registering a serialization JSP file for the price rule element
Create and register a serialization JSP file
to take the authoring elements from the PRELEMENT and PRELEMENTATTR
tables for your new price rule element and display them in the Management
Center user interface. Business users can then set the properties
for the price rule element when creating a price rule.
Before you begin
About this task
When a business user opens a price rule, the parent serialization JSP file, GetPriceRuleElements.jsp, calls the serialization JSP file for each price rule element to load the data for the price rule.
If the object definition for your new price rule element includes wcfChildObjectDefinitions or wcfReferenceObjectDefinitions, you must create a new serialization JSP file for your new price rule element; otherwise, you can use the existing generic serialization JSP file, SerializePriceRuleCommonElement.jsp, as is. In both cases, you must register the serialization JSP file in the Struts configuration file for customization, struts-extension.xml. This file is initially empty and takes precedence over all Struts configuration files.
Procedure
What to do next
- Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent directory. This setting is the default environment setting.
- Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
- Deploy your changes to your production environment.