Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by TedSteen: http://wiki.apache.org/tapestry/Tapestry5NamedSelectModel New page: {{{ import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.tapestry.OptionGroupModel; import org.apache.tapestry.OptionModel; import org.apache.tapestry.SelectModel; import org.apache.tapestry.util.AbstractSelectModel; public class NamedSelectModel extends AbstractSelectModel { private List<OptionModel> options = new ArrayList<OptionModel>(); private SelectModel model; public NamedSelectModel(final String label, SelectModel model) { this.model = model; options.add(new OptionModel() { public Map<String, String> getAttributes() { return null; } public String getLabel() { return label; } public Object getValue() { return null; } public boolean isDisabled() { return true; } }); options.addAll(model.getOptions()); } public List<OptionGroupModel> getOptionGroups() { return model.getOptionGroups(); } public List<OptionModel> getOptions() { return options; } } }}} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
