WEB4J Development Tools 4.10.0.0

Package hirondelle.web4jtools.codegenerator.codes

Code Tables for the application.

See:
          Description

Class Summary
Enumerations Place enumerations in application scope upon startup.
 

Enum Summary
ApplyOperation Add, Change, and Delete operations.
ControlStyle HTML Form control.
FieldType Enumeration for the class of a field in a Model Object.
ShowOperation List and Fetch operations.
SortOrder Ascending or Descending sort order.
UiStyle Style of user interface corresponding to an ActionTemplateXXX.
 

Package hirondelle.web4jtools.codegenerator.codes Description

Code Tables for the application.

This app simply uses Java enums to implement code tables.

Startup

Upon startup, this application's implementation of StartupTasks will call Enumerations.init(javax.servlet.ServletContext) to place all needed enums in application scope under specific keys.

HTML Forms

The code tables fetched during startup are referenced directly in HTML forms, as application scope objects.

Here is an example which references a code table named 'FieldTypes' :

<select name="Type" title='Java data type'>
 <option> </option>
  <c:forEach var="item" items="${FieldType}">
   <option value="${item}">${item}</option>
  </c:forEach>
</select>

Since no database is used in this app, these code tables exists in memory only.


WEB4J Development Tools 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26