Documentation Conventions for Beehive

Still to be discussed/ratified

Formatting

  1. Indents are four spaces.
  2. Multiline XML text content is indented, on its own line:
             <p>
                 some content
                 another line
             </p>
         
    ...and not:
           <p>some content
              another line</p>
       
  3. Right margin is 120 characters.
  4. Identifiers for <section> tags are camelCase rather than dashed. So, use "camelCase" rather than "camel-case" or "camel_case".

Terminology

  1. "NetUI", not "Netui".
  2. "Page Flow" for the controller-related piece of NetUI. 'Note that "NetUI" is a top-level component alongside Controls and WSM. Page Flow is a part of NetUI – it is never used as a top-level Beehive component.
  3. "page flow" for a single directory path that contains a controller and a set of pages. Common noun.
  4. "NetUI web project" to describe a set of files that can be built into a webapp. In most cases we will be talking about a "NetUI web project", unless we're talking about the actual thing that got built/deployed.
  5. "page flow controller" for the controller class (extended from Page{{`Flow}}`Controller) piece of a page flow.
  6. "shared flow controller" for a controller class that extends Shared{{`Flow}}`Controller and which can be used by page flows.
  7. "Shared Flow" for the feature that allows you to create/use shared flow controllers.
  8. "a shared flow" – delete this term from the doc – replace with "a shared flow controller".
  9. "controller class" as a general term for a page flow controller or a shared flow controller (e.g., the class myPageFlow.MyController)
  10. "controller file" – delete this term from the doc
  11. "JSP", not "JSP page"
  12. "<netui:textBox>" not "textBox"
  13. "form bean" not "Form{{`Data" or "Action}}`Form"

Mechanics

  1. We always use full xpath in "site:..." links.

Code Formatting

  1. TODO - need rules about code formatting in samples for XML, JSP, and Java