Created
May 31, 2011 16:44
-
-
Save messo/1000847 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class LoginPage extends BasePage { | |
| private static class LoginForm extends StatelessForm<Void> { | |
| private String username; | |
| private String password; | |
| public LoginForm(String id) { | |
| super(id); | |
| add(new TextField("username", new PropertyModel(this, "username"))); | |
| add(new PasswordTextField("password", new PropertyModel(this, "password"))); | |
| } | |
| @Override | |
| protected void onSubmit() { | |
| // this gets called twice. | |
| } | |
| } | |
| public LoginPage() { | |
| super("Bejelentkezés"); | |
| System.out.println("Page created: " + this); | |
| Form form = new LoginForm("form"); | |
| add(form); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment