/** * Constructs a single selection control, with labels distinct from the * submitting values. */ public static UISelect make(UIContainer tofill, String ID, String[] options, String[] labels, String valuebinding, String initvalue) { UISelect togo = make(tofill, ID, options, valuebinding, initvalue); if (labels != null) { togo.optionnames = UIOutputMany.make(labels); } return togo; }
protected static UISelect make(UIContainer tofill, String ID, String[] options) { UISelect togo = new UISelect(); togo.ID = ID; togo.optionlist = togo.optionnames = UIOutputMany.make(options); tofill.addComponent(togo); RSFUtil.updateChildIDs(togo); return togo; }
/** * Constructs a multiple selection control, with distinct submitted values and * rendered labels. */ public static UISelect makeMultiple(UIContainer tofill, String ID, String[] options, String[] labels, String valuebinding, String[] initvalue) { UISelect togo = make(tofill, ID, options); UIInputMany selection = UIInputMany.make(valuebinding); if (initvalue != null) { selection.setValue(initvalue); } if (labels != null) { togo.optionnames = UIOutputMany.make(labels); } togo.selection = selection; return togo; }
null, ttb + "month", transit == null ? null : transit.month); monthselect.optionnames = UIOutputMany.make(monthbeanname + ".indexes", monthbeanname +".names");
null, ttb + "month", transit == null ? null : transit.month); monthselect.optionnames = UIOutputMany.make(monthbeanname + ".indexes", monthbeanname +".names");