Using AjaxFormSubmitBehavior

2010-01-26 Thread Anna Simbirtsev
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: SUBMIT contact_form.add(new Button("contact_submitbutton").add(new AjaxFormSubmitBehavior(contact_form, "onclick") {

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Pedro Santos
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 wrote: > Hello, > > I have a modal window that is used to create a contact and needs to submit > data to the s

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Anna Simbirtsev
I have, but maybe its incorrect. contact_form.add(new FeedbackPanel("popup_feedback", new ContainerFeedbackMessageFilter(contact_form) )); On Tue, Jan 26, 2010 at 1:32 PM, Pedro Santos wrote: > Do you have an feedback panel on the model? If don't, add one and see if > your form don't pass in

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Pedro Santos
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 wrote: > I have, but maybe its incorrect. > > > > contact_f

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Anna Simbirtsev
Thanks, now in my feedback it displays errors that all required fields are empty. But the problem is, that even if I put the values in those fields it still does not see them and gives the same errors in the feedback panel. On Tue, Jan 26, 2010 at 1:41 PM, Pedro Santos wrote: > Take a look at th

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Pedro Santos
Even using AjaxButton? Can you send the code? On Tue, Jan 26, 2010 at 4:55 PM, Anna Simbirtsev wrote: > Thanks, now in my feedback it displays errors that all required fields are > empty. But the problem is, that even if I put the values in those fields it > still does not see them and gives the

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Anna Simbirtsev
I changed it to use AjaxButton instead of AjaxFormSubmitBehavior and it still does not see the values. SUBMIT FeedbackPanel contact_feedback = new FeedbackPanel("popup_feedback", new ContainerFeedbackMessageFilter(contact_form)); contact_feedback.setOutputMarkupId(true); contact_form.add(new Re

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Anna Simbirtsev
I have to add that its all done inside a modal window.  Create Contact On Tue, Jan 26, 2010 at 2:26 PM, Anna Simbirtsev wrote: > I changed it to use AjaxButton instead of AjaxFormSubmitBehavior and it > still does not see the values. > > wicket:id="contact_submitbutton" class="button"/>SUBMIT

Re: Using AjaxFormSubmitBehavior

2010-01-27 Thread Pedro Santos
How can you make sure that contact_data references to the same data on your contact_form model? I guess that is why you having troubles. For instance, you are creating the text field using new RequiredTextField("contact_id") it leads me guess you are using a CompoundPropertyModel on your contac

Re: Using AjaxFormSubmitBehavior

2010-01-27 Thread Anna Simbirtsev
I tried changing it to: System.out.println("Inside contact link's onError is called:" + contact_form.getModelObject().getContactId()); It prints null.:( On Wed, Jan 27, 2010 at 5:28 AM, Pedro Santos wrote: > How can you make sure that contact_data references to the same data on your > contact_f

Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread Haritha Juturu
Hi Everyone I'm trying to upload a file using AjaxFormSubmitBehavior . When i submit the form , the defined onSubmit() method is not being called. Can anyone tell me why this is happening ? Code given below: Java code is : Form f = new Form("f"); f.setOutp

Re: Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread Igor Vaynberg
file uploads using ajax are not supported -igor On Jan 10, 2008 4:59 PM, Haritha Juturu <[EMAIL PROTECTED]> wrote: > Hi Everyone > I'm trying to upload a file using AjaxFormSubmitBehavior . > When i submit the form , the defined onSubmit() method is not being called. >

Re: Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread mfs
e > I'm trying to upload a file using AjaxFormSubmitBehavior . > When i submit the form , the defined onSubmit() method is not being > called. Can anyone tell me why this is happening ? > Code given below: > Java code is : > Form f = new Form("f"); >