obsidienne/jelix — pull request #1 by laurentj (2012-11-13 22:11:44+00:00)
Title: Many improvements on jForms

I reorganized the new plugin architecture.

You now have a builder, a root widget, and other widgets.

a builder is a plugin like legacy builders, but this is a "formbuilder" plugin, not a "jforms" plugin.

A builder instancie a "root widget", which is a special "formwidget" plugin. a root widget implements the interface ParentWidgetInterface, which is the interface for widgets that can have child widget. the root widget have the responsability to generate the full JS for the form. Parts of this js is given by widgets.

widgets does not have any more an outputJs public method. The outputControl method of a widget is responsible to generate the JS, and to pass it to its parent widget (which can be the root widget or an other widget like choice or group).

we should now implements a configurable widget list, so we can choose our own widget for a control.