add(new Label("message", new SessionModel()));
add(new BookmarkablePageLink("indexLink", Index.class));
final TextField field = new TextField("textfield", new Model());
field.setRequired(true);
StatelessForm statelessForm = new StatelessForm("statelessform")
{
/**
* @see org.apache.wicket.markup.html.form.Form#onSubmit()
*/
protected void onSubmit()
{
info("Submitted text: " + field.getModelObject());
}
};
statelessForm.add(field);
add(statelessForm);
add(new FeedbackPanel("feedback"));
}