139140141142143144145146147148149
select.setValidationTracker(tracker); select.setBlankOption(BlankOption.ALWAYS, "Make a selection"); MarkupWriter writer = new MarkupWriterImpl(new XMLMarkupModel()); writer.element("select"); select.options(writer); writer.end();
172173174175176177178179180181182
select.setValue("barney"); select.setValidationTracker(tracker); MarkupWriter writer = new MarkupWriterImpl(new XMLMarkupModel()); writer.element("select"); select.options(writer); writer.end();
216217218219220221222223224225226
263264265266267268269270271272273
298299300301302303304305306307308
select.setValue("Fred"); select.setValidationTracker(tracker); MarkupWriter writer = new MarkupWriterImpl(new XMLMarkupModel()); writer.element("select"); select.options(writer); writer.end();
331332333334335336337338339340341
366367368369370371372373374375376
8788899091929394959697
select.setModel(new SelectModelImpl(null, options)); select.setValue("barney"); MarkupWriter writer = new MarkupWriterImpl(new XMLMarkupModel(), null); writer.element("select"); select.options(writer); writer.end();
111112113114115116117118119120121
135136137138139140141142143144145