cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Larson <>
Subject [Woody] Class and Union widget questions
Date Fri, 24 Oct 2003 21:32:04 GMT
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();
What do you think of changing this to:
and in the subwidget definition's createInstance() have this:
  widget = new SomeWidget();

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

View raw message