I implemented a "Class" widget definition which contains a list of widgets, but its createInstance() is designed to not create instances of those widgets. Instead, you use a "New" widget definition which references a "Class" widget definition, and the "New" createInstance() creates instances of the class's widgets. The issue is that this breaks the sequence that is used in the container widgets (Form, Repeater, etc.): subwidget = subdefinition.createInstance(); parentwidget.addWidget(subwidget); What do you think of changing this to: subdefinition.createInstance(parentwidget); and in the subwidget definition's createInstance() have this: widget = new SomeWidget(); parentwidget.addWidget(widget);
This would involve changing the signature of createInstance(), making addWiget() public, and touching every widget to make the changes. What do you think? --Tim Larson __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
