Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixes few typos

...

Naming Conventions for Artifacts and controller entries

Controller

A Most of the time, a controller file (in OFBiz controller.xml) contains a lot 's of request-map maps and view-mapmaps. To help the reader, set a blank line between request-map or view-map element only when you change the functionnal group (entity, workflow or IHM treatment). Of course comments at the top of sections are welcome...

Request without event

Most In most of case, the request name is the same that than the view-map called. For the request-map name use java naming conventions object convention for Objects (ex : "FindParty"), and declare all in one line.

...

Request with event

For the request-map name use java naming conventions convention for field or method (ex : "editParty"), and declare each xml element on separate line

Code Block
themeConfluence
languagexml
   <request-map uri="createPerson">
        <security https="true" auth="true"/>
        <event type="service" invoke="createPerson"/>
        <response name="success" type="view" value="EditPerson"/>
        <response name="error" type="view" value="EditPerson"/>
    </request-map>

View

For the view-map name use java naming conventions object convention for Objects (ex : "FindParty"), and declare all in one line.

...