/** * Add a menu input control which allows the user to select from a list of * available options. * * @param name * (Required) a non-unique local identifier used to differentiate * the element from its siblings within an interactive division. * This is the name of the field use when data is submitted back * to the server. * @param rend * (May be null) a rendering hint used to override the default * display of the element. * @return a new select field */ public Select addSelect(String name, String rend) throws WingException { Select select = new Select(context, name, rend); fields.add(select); return select; }
/** * Add a menu input control which allows the user to select from a list of * available options. * * @param name * (Required) a non-unique local identifier used to differentiate * the element from its siblings within an interactive division. * This is the name of the field use when data is submitted back * to the server. * @param rend * (May be null) a rendering hint used to override the default * display of the element. * @return a new select field */ public Select addSelect(String name, String rend) throws WingException { Select select = new Select(context, name, rend); contents.add(select); return select; }