Examples of PlaceholderBehavior


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

                //TODO: MZA: Could be done without refreshing the whole page?
                userDataProvider.setSearchFilter(searchQuery.getModelObject());
            }
        };
        searchQuery = new TextField<String>("searchQuery", Model.of(""));
        searchQuery.add(new PlaceholderBehavior(getString("search.enterTerms")));
        searchForm.add(searchQuery);
        return searchForm;
    }
View Full Code Here

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

        //Border to add red asterisk on error, FormComponentFeedbackIndicator could be used for something more.
        //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
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.