Examples of AjaxAutocompleteBehavior


Examples of org.wicketstuff.scriptaculous.autocomplete.AjaxAutocompleteBehavior

    TextField color = new TextField("color");
    color.add(new AutocompleteBehavior(results));
    add(color);

    TextField email = new TextField<String>("email", new PropertyModel<String>(new User(), "email"));
    email.add(new AjaxAutocompleteBehavior() {
      protected String[] getResults(String input) {
        return new String[] {
            "bill.gates@microsoft.com",
            "me@yourdomain.com",
            "ryan@codecrate.com",
        };
      }
    });
    add(email);

    TextField name = new TextField<String>("name", new PropertyModel<String>(new User(), "email"));
    name.add(new AjaxAutocompleteBehavior() {
      protected String[] getResults(String input) {
        return new String[] {
            "bill.gates@microsoft.com <span class=\"informal status\">good</span>",
            "me@yourdomain.com <span class=\"informal status\">better</span>",
            "ryan@codecrate.com <span class=\"informal status\">best</span>",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.