Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited title: s/w/W/

Usage

Code Block
titleUsage
${ ui.includeFragment("widgets/field", [ class: org.openmrs.Role.class, formFieldName: "role"]) }
    // will delegate to (i.e. include) the "fields/org.openmrs.Role" fragment

How to write a field

  • Create a fragment under the "fields" folder as "the.package.ClassName". (TODO where would you put the controller?).
  • Do not implement a label (so that one may be added by the labeledField widget)
  • Do include a span to display errors with id "${ id }-error"

...