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 RequiredTextFieldString(contact_id) it leads me guess you are using a CompoundPropertyModel on your

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 pedros...@gmail.com wrote: How can you make sure that contact_data references to the same data on

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: button wicket:id=contact_submitbutton type=submitSUBMIT/button contact_form.add(new Button(contact_submitbutton).add(new

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 asimbirt...@gmail.comwrote: Hello, I have a modal window that is used to create a contact and needs to

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Anna Simbirtsev
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

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 asimbirt...@gmail.comwrote: I have, but maybe its

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 pedros...@gmail.com wrote:

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 asimbirt...@gmail.comwrote: 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

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. div class=submitareainput type=button wicket:id=contact_submitbutton class=button/SUBMIT/div FeedbackPanel contact_feedback = new FeedbackPanel(popup_feedback, new

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Anna Simbirtsev
I have to add that its all done inside a modal window. div class=addicon img src=images/add-ico.gif border=0nbsp;a href=#a href=#TB_inline?height=605amp;width=820amp;inlineId=CreateContactContentamp;modal=true title= class=thickboxCreate Contact/a/a/div On Tue, Jan 26, 2010 at 2:26 PM, Anna

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.setOutputMarkupId(true

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. Can anyone tell me why

Re: Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread mfs
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.setOutputMarkupId(true); f.setMultiPart(true); f.setMaxSize