Package ru.yandex.strictweb.scriptjava.base

Examples of ru.yandex.strictweb.scriptjava.base.InputValidator


    private NodeBuilder drawObjectForm(SomeModel o) {
        final NodeBuilder form = $DIV().field("Object")
            .text("Object ID: " + o.id).add($HIDDEN(ajaxName(o.id), o.id)).BR()
            .text("Object name: ").add($INPUT().name(ajaxName(o.name)).value(o.name)).BR()
            .text("Object email: ").add($INPUT().name(ajaxName(o.email)).value(o.email).validator(new InputValidator() {
                public boolean isValid(Node n) {
                    return n.value.toString().indexOf("@") > 0;
                }
               
                public String getMessage() {
View Full Code Here

TOP

Related Classes of ru.yandex.strictweb.scriptjava.base.InputValidator

Copyright © 2018 www.massapicom. 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.