Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Introduction

A number of Freemarker widgets are available to the developer to make UI development faster and easier. The widgets are automatically included at application start-up. There is no need to include them in your FTL.

Organization

They are organized into different Freemarker namespaces depending on their function. Here is a list of widget classes:

Class

Declaration*

Namespace

Example

Layout

layouts/layouts.ftl

layout

[@layout.webflow ...]

Lookup

lookups/lookups.ftl

lookup

[@lookup.fromMap ...]

Form

widgets/form.ftl

form

[@form.errors ...]

i18n

widgets/i18n.ftl

i18n

[@i18n.mlink ...]

Widget

widgets/widgets.ftl

widget

[@widget.datatable ...]

Questionnaire

<questionnaire module>/widgets/questionnaire.ftl

questionnaire

[@questionnaire.responseForm ...]

* Relative to userInterface/src/main/resources/org/mifos/ui/freemarker.core

Since more widgets will be added overtime, the source is the best place to look for available widgets. Start by opening the declaration file and look at the macros and follow the #include's.

  • No labels