I copied this code from AbstractSelectModel into my GenericSelectionModel, and now it works again. Later on I might see if my GenericSelectionModel can just extend the Abstract one.
public final void visit(SelectModelVisitor visitor) { List<OptionGroupModel> groups = getOptionGroups(); if (groups != null) { for (OptionGroupModel groupModel : groups) { visitor.beginOptionGroup(groupModel); visitOptions(groupModel.getOptions(), visitor); visitor.endOptionGroup(groupModel); } } visitOptions(getOptions(), visitor); } private void visitOptions(List<OptionModel> options, SelectModelVisitor vistor) { if (options != null) { for (OptionModel optionModel : options) vistor.option(optionModel); } } On 5/29/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
Hello all, I have a public class GenericSelectionModel<T> implements SelectModel { ...} That I need to add this method to: public void visit(SelectModelVisitor arg0) {...} I think Howard added this in response to some enhancements to the T5 Palette component. At the moment I can't quite wrap my head around how to use it. Any tips out there? Thanks Daniel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]