wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francois Meillet <francois.meil...@gmail.com>
Subject Re: Filtered feedback message cleanup
Date Tue, 19 Nov 2013 11:41:56 GMT
Form form = new Form("form");
		form.setOutputMarkupId(true);
		add(form);
		
		RequiredTextField<String> username = new
RequiredTextField<String>("username", new Model<String>());
		form.add(username);
		
		final PasswordTextField password = new PasswordTextField("password", new
Model<String>());
		password.add(new ValidationMessageBehavior());
		form.add(password);

        Link<String> localeLinkDE = new Link<String>("localeLinkDE") {
            @Override
            public void onClick() {
                Locale localeDE = new Locale("de", "DE");
                setLocale(localeDE);
                password.getFeedbackMessages().clear();
            }
        };
        add(localeLinkDE);



-----
François Meillet
Formation Wicket - Développement Wicket
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662503p4662523.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message