Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updating the link to the best Practices Guide (resides in OFBIZ recently)

...

The OFBiz project follows the Sun coding standards for Java source code. For information regarding this standard please visit http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

The line length of 150 is an exception to the Sun standard

Here is an example of a Java formatter for Eclipse

For Groovy we suggest you read http://www.groovy-lang.org/style-guide.html but we don't expect people to follow all details there, still a good read..

...

Service Definitions

Best Practices

Apache OFBiz Best Practices Guide


License Headers

Each and every source file should contain the ASL2.0 header:

...

Code Block
languagexml
themeConfluence
    <view-map name="FindParty" type="screen" page="component://mycomponent/widget/PartyScreens.xml#FindParty"/>

...


widget screens

TODO: conventions for screen names (top-level screens, included screens, decorators)

...