Hello,
I have a modal window that is used to create a contact and needs to submit
data to the server once submit button is called.
The submit button is defined as follows:
<button wicket:id="contact_submitbutton" type="submit">SUBMIT</button>
contact_form.add(new Button("contact_submitbutton").add(new
AjaxFormSubmitBehavior(contact_form, "onclick") {
private static final long serialVersionUID =
4192112499051970470L;
protected void onSubmit(AjaxRequestTarget target)
{
System.out.println("Inside contact link's onSubmit is
called" );
}
@Override
protected void onError(AjaxRequestTarget target)
{
}
}));
But nothing happens when I click on the button.
Thanks,
Anna