Do you have an feedback panel on the model? If don't, add one and see if your form don't pass in some validation like on required field.
On Tue, Jan 26, 2010 at 4:07 PM, Anna Simbirtsev <[email protected]>wrote: > 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 > -- Pedro Henrique Oliveira dos Santos
