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 <[email protected]> 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 <[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
>



-- 
Anna Simbirtsev
(416) 729-7331

Reply via email to