protected void onError(AjaxRequestTarget target) {
// nothing to do
}
});
urlTextField = new TextField("url", new PropertyModel(requestModel, "requestUrl"));
urlTextField.setMarkupId("requestUrl");
urlTextField.setOutputMarkupId(true);
demoRequestsForm.add(urlTextField);
body = new TextArea("body", new PropertyModel(requestModel, "requestBody"));
// force the id otherwise this blasted thing won't be usable from other forms
body.setMarkupId("requestBody");
body.setOutputMarkupId(true);
body.add(new EditAreaBehavior());
demoRequestsForm.add(body);
username = new TextField("username", new PropertyModel(requestModel, "userName"));
demoRequestsForm.add(username);
password = new PasswordTextField("password", new PropertyModel(requestModel, "password"));
password.setRequired(false);
demoRequestsForm.add(password);