Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Multiple instructions for the same thing, just link to the instructions.

...

Extending an Existing webapp Only

If there not a large but changes in controller, groovy files and small extension to the screens and forms are there then this strategy can be adopted.
Following steps need to be performed for overriding an existing webapp:

Follow these steps:

...

Make sure to properly override the webapp in ofbiz-component.xml file of custom component with the webapp that you already have as example given below:

Code Block
<webapp name="catalog"
    title="Catalog"
    server="default-server"
    location="webapp/catalog"
    base-permission="OFBTOOLS,CATALOG"
    mount-point="/catalog"
    app-bar-display="true"/>

...

Make sure to have controller.xml file in new webapp created and include the the controller from existing webapp and only include custom requests only rest will be taken care by included controller only, as shown bellow:

Code Block
<include location="component://product/webapp/catalog/WEB-INF/controller.xml"/>

...

you only need to change a few things such then follow the instructions How to Extend an existing component in customized application

 

...