wicket.markup.html.form.SubmitLink
[back to the reference]A SubmitLink is a special link that acts like a submit button. It can be inside the form component or outside the form component.
External SubmitLink with confirmation
Behind the Scenes
Example HTML
<form wicket:id="form">
<a wicket:id="internal">Internal SubmitLink</a>
</form>
<a wicket:id="external">External SubmitLink</a>
Example Code
public SubmitLinkPage() {
// Add a FeedbackPanel for displaying our messages
FeedbackPanel feedbackPanel = new FeedbackPanel("feedback");
add(feedbackPanel);
// Add a form with 2 SubmitLinks that can be called
Form form = new Form("form");
add(form);
SubmitLink internal = new SubmitLink("internal");
form.add(internal);
SubmitLink external = new SubmitLink("external", form);
add(external);
});
}