Skip to content

Instantly share code, notes, and snippets.

@messo
Created May 31, 2011 16:44
Show Gist options
  • Select an option

  • Save messo/1000847 to your computer and use it in GitHub Desktop.

Select an option

Save messo/1000847 to your computer and use it in GitHub Desktop.
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