• Introduction
  • Form Handling
  • Dojango Grid
  • Parent Child Views
  • Dojo Custom Builds
  • View API
  • Messaging Specification
  • Grails Integration API
  • References
  • Contact

jaces is a extension to dijit for writing less and simplier code for form handling, listing items, adding records and updating them. The backbone of jaces is the widget jaces/View. Views have a form and many form widgets inside. The form might be any widget extending from jaces/body/_Form and form widgets might be any dijit and dojox widget capable of handling/carrying/representing form data and actions. Examples include but not limited to text boxes, combo boxes and buttons.

Simplest Sample

The simplest sample of a view is this one:

      <div dojoType="jaces/View">
         <div dojoType="jaces/body/Form">
            A text value:
            <div dojoType="dijit/form/TextBox" valueCol=".field1"></div>
            <div dojoType="dijit/form/Button" class="info" onClick="var values = {}; this.getView().getForm().gather(values); alert('Form values: \n ' + jAces.dump(values));">
               Click to dump the form values</div>

A text value:
Click to dump the form values

The simplest sample may not make very good sense to all. Be patient please! Advanced samples are comming! When the button is clicked, the following things are dumped.

  1. field1:

    The value of the text box.

  2. isDirty:

    A boolean value indicating the user changed since the form is initiated or last saved.

  3. _select_Columns:

    The comma separated list of fields in the form. The list is generally used by the data store to provide the relevant values to the form.

  4. _update_Columns:

    The comma separated list of update fields in the form. The list is generally used by the data store to apply the values to the target entity when an insert or update runs.