> But if the generic parameter was a collection, wouldn't the fact that
> it's a leaf editor prevent the framework from entering sub-editors?

Hence the explicit chain.attach() call.  If you wanted to edit an
optional list, you could replace the nameLabel with the ListEditor
adaptor class.  Assuming that a PersonMight have a list of mentors:

// That's editor.client.adapters.ListEditor
MentorSelector implements LeafValueEditor<List<Person>>,
CompositeEditor<List<Person>, List<Person>, ListEditor<Person,
NameLabel>>

-- 
Bob Vawter
Google Web Toolkit Team

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to