Package org.appfuse.webapp.pages.components

Examples of org.appfuse.webapp.pages.components.RequiredBehavior


        //TODO: MZA: Take a look at FormComponentFeedbackBorder markup (its wicket:body) as a hint for required label
        //TODO: MZA: How to change a background color of an input with validation error?
        loginForm.add(new FormComponentFeedbackBorder("border").add(
                (usernameField = new RequiredTextField<String>("username", Model.of("")))));
        usernameField.add(new PlaceholderBehavior(getString("label.username")));
        usernameField.add(new RequiredBehavior());
        loginForm.add(passwordField = new PasswordTextField("password", Model.of("")));
        passwordField.add(new PlaceholderBehavior(getString("label.password")));
        passwordField.add(new RequiredBehavior());
    }
View Full Code Here

TOP

Related Classes of org.appfuse.webapp.pages.components.RequiredBehavior

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.