Coding Conventions

### General

1. Make sure the code you committed is 100% valid and will not fail the deployment of the application.
2. Leave as many comments as possible. Do not assume that the code example is too obvious to be commented. Your comments can help other techwriters (or users) understand how your code functions.

### Managed Beans and View Pages

1. If you need just a single bean for your code sample you can place it in org.docs package.
2. If your sample requires multiple beans make a separate package for the beans. For example, org.docs.tree that houses Tree.java and Nodes.java. This will keep the app clean and facilitate navigation.
3. Name view pages the same way as the component you are documenting. Example: rich:colorPicker is documented in colorPicker.xhtml
4. When a new view page is created do not forget to include it in the main menu. Location: webapp\layout\mainMenu.xthml