cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hugo Burm" <>
Subject Selectors for Woody FormManager and BindingManager
Date Thu, 18 Dec 2003 18:32:31 GMT

This is about selecting a Form- and BindingManager in Woody.
I want to use my own CustomFormManager instead of
And I want to use my own CustomBindingManager.

So I need the Avalon selector mechanism in the Woody framework for selecting
a formmanager and a bindingmanager.

In case somebody asks why I need this: I implemented a template/subform
framework. I 'll post about this later.

These are the required changes for making the selector work (these are
changes to be made by the Woody developers, not by the end-users. This is
transparent for end-users):
1) in woody2.js you have to get your formmanager with one line of additional
        var selector =
        var formManager ="default");
2) Almost the same applies for the createBinding function.
3) In the actions you have to make the same changes as in the flow script.
4) In woody.*.xroles you have to define a "default" hint
5) In woody.*.xconf you must define the widgets for this hint.

I made these changes to -HEAD and tested the Woody samples. Everything seems
to be working as before.

I created a patch. If the Woody committers think this is something that can
make it to HEAD, I will submit it to Bugzilla.

If there are better/easier solutions for switching between different
FormManagers, please let me know.

Hugo Burm

View raw message