I want to submit a form by pressing enter key. Wicket allows to do that till any button is attached to form and is visible. Is there any way in wicket freamwork to submit a form by simple pressing an enter key?
enter works:
Form<?> searchForm = new Form<Void>("searchForm");
add(searchForm);
searchForm.add(button);
enter doesn't work:
Form<?> searchForm = new Form<Void>("searchForm");
add(searchForm);
searchForm.add(button);
button.setVisible(false);
In both cases button is a simple AjaxButton.