Take a look at the AjaxButton if you need an asynchronous submit, and implement your onError handlers with:
target.addComponent( myFeedbackPanelThatMabyWillShowSomeMessageIfGetUpdated ); On Tue, Jan 26, 2010 at 4:34 PM, Anna Simbirtsev <asimbirt...@gmail.com>wrote: > I have, but maybe its incorrect. > > <div wicket:id="popup_feedback" id="popup_feedback"></div> > > contact_form.add(new FeedbackPanel("popup_feedback", new > ContainerFeedbackMessageFilter(contact_form) )); > > On Tue, Jan 26, 2010 at 1:32 PM, Pedro Santos <pedros...@gmail.com> wrote: > > > 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 <asimbirt...@gmail.com > > >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 > > > > > > -- > Anna Simbirtsev > (416) 729-7331 > -- Pedro Henrique Oliveira dos Santos