add(actionLink);
actionLink.add(new Label("linkClickCount", new PropertyModel(this, "linkClickCount")));
final TextField field = new TextField("textfield", new Model());
StatelessForm statelessForm = new StatelessForm("statelessform")
{
private static final long serialVersionUID = 1L;
/**
* @see org.apache.wicket.markup.html.form.Form#onSubmit()
*/
protected void onSubmit()
{
info("Submitted text: " + field.getDefaultModelObject() + ", link click count: " +
linkClickCount);
}
};
statelessForm.add(field);
add(statelessForm);
add(new FeedbackPanel("feedback"));
}